Skip to content

Commit

Permalink
Add ast_new into the run_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Thirumalai-Shaktivel committed Aug 5, 2022
1 parent e09183f commit c4f2bfb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def single_test(test, specific_test, verbose, no_llvm, update_reference):
show_verbose = "" if not verbose else "-v"
tokens = test.get("tokens", False)
ast = test.get("ast", False)
ast_new = test.get("ast_new", False)
asr = test.get("asr", False)
llvm = test.get("llvm", False)
cpp = test.get("cpp", False)
Expand Down Expand Up @@ -46,6 +47,15 @@ def single_test(test, specific_test, verbose, no_llvm, update_reference):
update_reference,
extra_args)

if ast_new:
run_test(
filename,
"ast_new",
"lpython --show-ast --new-parser --no-color {infile} -o {outfile}",
filename,
update_reference,
extra_args)

if asr:
run_test(
filename,
Expand Down

0 comments on commit c4f2bfb

Please sign in to comment.