Lines Matching refs:output_dir
335 output_dir = self.get_output_dir()
337 self.build(project_dir, output_dir)
338 check_build(output_dir)
341 cleanup_reference_results(output_dir)
362 def build(self, directory: str, output_dir: str) -> Tuple[float, int]:
363 build_log_path = get_build_log_path(output_dir)
366 self.out(f"Output directory: {output_dir}\n")
368 remove_log_file(output_dir)
371 if os.path.exists(output_dir):
372 self.vout(f" Removing old results: {output_dir}\n")
374 shutil.rmtree(output_dir)
376 assert(not os.path.exists(output_dir))
377 os.makedirs(os.path.join(output_dir, LOG_DIR_NAME))
384 build_time, memory = self.scan_build(directory, output_dir,
388 output_dir)
392 normalize_reference_results(directory, output_dir,
401 def scan_build(self, directory: str, output_dir: str,
422 options += f"-plist-html -o '{output_dir}' "
450 extra_env['OUTPUT'] = output_dir
488 output_dir: str) -> Tuple[float, int]:
508 plist_path = os.path.join(directory, output_dir, "date")
706 def check_build(output_dir: str):
714 failures = glob.glob(output_dir + "/*/failures/*.stderr.txt")
718 clean_up_empty_plists(output_dir)
719 clean_up_empty_folders(output_dir)
721 plists = glob.glob(output_dir + "/*/*.plist")
747 def cleanup_reference_results(output_dir: str):
755 for file_to_rm in glob.glob(f"{output_dir}/*/*.{extension}"):
756 file_to_rm = os.path.join(output_dir, file_to_rm)
760 remove_log_file(output_dir)
839 def normalize_reference_results(directory: str, output_dir: str,
844 for dir_path, _, filenames in os.walk(output_dir):
872 def get_build_log_path(output_dir: str) -> str:
873 return os.path.join(output_dir, LOG_DIR_NAME, BUILD_LOG_NAME)
876 def remove_log_file(output_dir: str):
877 build_log_path = get_build_log_path(output_dir)
887 def clean_up_empty_plists(output_dir: str):
893 for plist in glob.glob(output_dir + "/*/*.plist"):
894 plist = os.path.join(output_dir, plist)
909 def clean_up_empty_folders(output_dir: str):
913 subdirs = glob.glob(output_dir + "/*")