diff --git a/run_tests.py b/run_tests.py index f8eee2600f..01946a9c29 100755 --- a/run_tests.py +++ b/run_tests.py @@ -26,6 +26,7 @@ def is_included(backend): llvm_dbg = is_included("llvm_dbg") cpp = is_included("cpp") c = is_included("c") + is_cumulative = is_included("cumulative") wat = is_included("wat") run = is_included("run") run_with_dbg = is_included("run_with_dbg") @@ -91,7 +92,10 @@ def is_included(backend): extra_args) if pass_ is not None: - cmd = "lpython --pass=" + pass_ + \ + cmd = "lpython " + if is_cumulative: + cmd += "--cumulative " + cmd += "--pass=" + pass_ + \ " --show-asr --no-color {infile} -o {outfile}" run_test(filename, "pass_{}".format(pass_), cmd, filename, update_reference, extra_args)