...
 
Commits (6)
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
......@@ -185,9 +185,10 @@ Output of the `./mjt.py --help`
usage: mjt.py [-h] [--only_incorrect_tests] [--all_exec_tests]
[--produce_no_reports] [--produce_all_reports] [--parallel]
[--output_no_incorrect_reports] [--color] [--ci_testing]
[--log_level LOG_LEVEL]
[--log_level LOG_LEVEL] [--bench_compiler_flag_1]
[--bench_compiler_flag_2]
{all,lexer,syntax,ast,semantic,compile-firm-only,compile-only,
compile-firm,compile,exec,exec-firm} MJ_RUN
compile-firm,compile,exec,exec-firm,bench} MJ_RUN
MiniJava test runner
......@@ -217,6 +218,14 @@ optional arguments:
modes/phases should also succeed in this mode, and
failing test cases of prior modes/phases should also
fail in this phase.
--bench_compiler_flag_1 BENCH_COMPILER_FLAG_1
Set the first compiler flag/mode that is used for
comparison, 'javac' for the java compiler
--bench_compiler_flag_2 BENCH_COMPILER_FLAG_2
Set the first compiler flag/mode that is used for
comparison, 'javac' for the java compiler
--bench_runs BENCH_RUNS
Number of times to run a benchmarked code
--log_level LOG_LEVEL
Logging level (error, warn, info or debug)
```
......
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
......@@ -94,9 +94,11 @@ if True:#__name__ == '__main__':
args["mode"] = new_mode
if args["mode"] == "all":
report_subdir = datetime.now().strftime("%d-%m-%y_%H-%M-%S")
cwd = os.path.realpath(".")
for mode in [TestMode.lexer, TestMode.syntax, TestMode.ast, TestMode.semantic,
TestMode.compile_firm_only, TestMode.compile_only,
TestMode.compile_firm, TestMode.compile]:
os.chdir(cwd)
args["all_exec_tests"] = True
args["report_subdir"] = report_subdir + "_" + mode
cprint("Run {} tests".format(mode), attrs=["bold"])
......
......@@ -135,7 +135,7 @@ class Environment:
self.timeout = float(os.getenv("MJ_TIMEOUT", "10"))
self.big_timeout = float(os.getenv("MJ_BIG_TIMEOUT", "60"))
self.bench_compiler_flags = bench_compiler_flags
self.bench_compiler_flags = [bench_compiler_flag_1, bench_compiler_flag_2]
self.bench_runs = bench_runs
def create_tmpfile(self) -> str:
......
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644