Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small suggested improvements #191

Merged
merged 2 commits into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ testing_log_*
gen_test_makefile_log_*
statistics_*.log
csmith_statistics_*.log
scripts/testing/process*/*
scripts/testing/result/**

!*/
.idea
Expand Down
8 changes: 4 additions & 4 deletions scripts/gen_test_makefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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):
Expand All @@ -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):
Expand All @@ -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=""):
Expand Down
Loading