Commit 59d77238 authored by Johannes Bechberger's avatar Johannes Bechberger

Fix `all` mode

parent 3040b097
...@@ -82,7 +82,8 @@ if True:#__name__ == '__main__': ...@@ -82,7 +82,8 @@ if True:#__name__ == '__main__':
count += ret.count count += ret.count
if args["mode"] == "all": if args["mode"] == "all":
report_subdir = datetime.now().strftime("%d-%m-%y_%H-%M-%S") report_subdir = datetime.now().strftime("%d-%m-%y_%H-%M-%S")
for mode in [TestMode.lexer, TestMode.syntax, TestMode.ast, TestMode.semantic]: for mode in [TestMode.lexer, TestMode.syntax, TestMode.ast, TestMode.semantic, TestMode.compile_firm]:
args["all_exec_tests"] = True
args["report_subdir"] = report_subdir + "_" + mode args["report_subdir"] = report_subdir + "_" + mode
cprint("Run {} tests".format(mode), attrs=["bold"]) cprint("Run {} tests".format(mode), attrs=["bold"])
args["mode"] = mode args["mode"] = mode
......
...@@ -184,14 +184,6 @@ class JavaInfiniteLoopTest(BasicSyntaxTest): ...@@ -184,14 +184,6 @@ class JavaInfiniteLoopTest(BasicSyntaxTest):
os.chdir(cwd) os.chdir(cwd)
return test_result return test_result
out, err, rtcode = self.env.run_command("./" + base_filename, timeout=timeout) out, err, rtcode = self.env.run_command("./" + base_filename, timeout=timeout)
if rtcode != 0:
test_result.incorrect_msg = "binary can't be run"
test_result.set_error_code(rtcode)
test_result.add_long_text("Error output", err.decode())
test_result.add_long_text("Output", out.decode())
test_result.add_file("Source file", self.preprocessed_file)
os.chdir(cwd)
return test_result
except SigKill as sig: except SigKill as sig:
if sig.retcode == signal.SIGXCPU: if sig.retcode == signal.SIGXCPU:
test_result.add_long_text("Output", out.decode()) test_result.add_long_text("Output", out.decode())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment