From 759de8eba82a3ca3426973668d89e26385c5f5ff Mon Sep 17 00:00:00 2001 From: Ofek Shilon Date: Sat, 2 Dec 2023 23:43:36 +0200 Subject: [PATCH 1/2] gitignore testing process/results --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 4ef79ec..d4494ab 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,8 @@ testing_log_* gen_test_makefile_log_* statistics_*.log csmith_statistics_*.log +scripts/testing/process*/* +scripts/testing/result/** !*/ .idea From 20247491ee8719136cc0bb3ecc9bb13851fe9f56 Mon Sep 17 00:00:00 2001 From: Ofek Shilon Date: Sat, 2 Dec 2023 23:44:01 +0200 Subject: [PATCH 2/2] Make test_sets processing errors more informative --- scripts/gen_test_makefile.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/gen_test_makefile.py b/scripts/gen_test_makefile.py index 64b275b..a97e552 100755 --- a/scripts/gen_test_makefile.py +++ b/scripts/gen_test_makefile.py @@ -185,7 +185,7 @@ def get_options(spec): try: return StatisticsOptions.all_stats_options[spec.name].options except KeyError: - common.print_and_exit("Can't find key!") + common.print_and_exit("Can't find key!" + spec) ############################################################################### # Section for config parser @@ -209,7 +209,7 @@ def add_specs(spec_list): CompilerSpecs(spec_list[0], spec_list[1], spec_list[2], spec_list[3], spec_list[4]) common.log_msg(logging.DEBUG, "Finished adding compiler spec") except KeyError: - common.print_and_exit("Can't find key!") + common.print_and_exit("Can't find key! " + spec_list[0] + " " + spec_list[1] + " " + spec_list[2] + " " + spec_list[3] + " " + spec_list[4]) def add_sets(set_list): @@ -219,7 +219,7 @@ def add_sets(set_list): Arch(set_list[3], SdeArch[set_list[4]])) common.log_msg(logging.DEBUG, "Finished adding testing set") except KeyError: - common.print_and_exit("Can't find key!") + common.print_and_exit("Can't find key! " + set_list[0] + " " + set_list[1] + " " + set_list[2] + " " + set_list[3] + " " + set_list[4]) def add_stats_options(stats_opt_list): @@ -229,7 +229,7 @@ def add_stats_options(stats_opt_list): StatisticsOptions(CompilerSpecs.all_comp_specs[stats_opt_list[0]], stats_opt_list[1]) common.log_msg(logging.DEBUG, "Finished adding stats option string") except KeyError: - common.print_and_exit("Can't find key!") + common.print_and_exit("Can't find key! " + stats_opt_list[0] + " " + stats_opt_list[1]) def read_compiler_specs(config_iter, function, next_section_name=""):