Skip to content

Commit

Permalink
Add option to test cumulative flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Smit-create committed Jul 13, 2023
1 parent 2feed64 commit 9edbf81
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 9edbf81

Please sign in to comment.