Commit 9a52b94e authored by Daniel Tuulik's avatar Daniel Tuulik

Add QGEN_UNSUPPORTED test category

parent 86c5d81f
......@@ -6,6 +6,10 @@ DISABLED_BENCHMARKS=test1/ test2/ test3/ test4/ test5/ test6/ test7/ test9/ \
BENCHMARK_CASES=$(filter-out $(DISABLED_BENCHMARKS), $(sort $(dir $(wildcard */))))
export EXPECTED_FAILURES=test-typecheck/ test-procedure/ test-demoopengeode/ test-branchcoverage/
export QGEN_UNSUPPORTED=test3/ test4/ test7/ test10/ test-aggregation1/ test-aggregation2/\ test-debug/ test-demotaste/ test-exitnested/ test-instance\
test-nestedpriority/ test-nocif/ test-nocif2/ test-processfpar1/\
test-processfpar2/ test-provided2/ test-pus/ test-recursion/\
test-shadowing/ test-simu/ test-uart/
@python3 test-parse $(TEST_CASES)
......@@ -47,13 +47,16 @@ def main():
results = []
op = parse_args()
xfails = os.environ['EXPECTED_FAILURES']
qgen_unsup = os.environ['QGEN_UNSUPPORTED']
with futures.ProcessPoolExecutor(max_workers=cpu_count()) as executor:
for result in, op.rule)), op.paths):
print("%40s: %s" % (result[3], colorMe(result[0],
'[OK]' if result[0]==0 else
if result[3] in xfails
else '[FAILED]'))))
if result[3] in qgen_unsup
else '[FAILED]')))))
results.append(result), 'clean'), op.paths)
......@@ -135,7 +135,7 @@ def run_test(op):
return (errcode, stdout, stderr, op.root_model, op.rule)
if lang in ('ada', 'c'):
errcode, stdout, stderr = _compile (lang, outfolder)
errcode, stdout, stderr = _compile (lang, outfolder, gentypes)
return (errcode, stdout, stderr, op.root_model, op.rule)
......@@ -172,10 +172,14 @@ def _run_gprbuild(gprfile, exec_file):
return (errcode, stdout, stderr)
def _compile (lang, src_path):
def _compile (lang, src_path, gentypes):
c_executable = "test_qgen_c"
ada_executable = "test_qgen_ada"
if gentypes:
c_executable = "test_qgen_gt_c"
ada_executable = "test_qgen_gt_ada"
c_executable = "test_qgen_c"
ada_executable = "test_qgen_ada"
c_main = c_executable + ".c"
ada_main = ada_executable + ".c"
main_file = ""
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