Skip to content

Commit

Permalink
TEST: Enable test and update ref tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaikh-Ubaid committed Apr 27, 2023
1 parent dac940b commit 8506de2
Show file tree
Hide file tree
Showing 4 changed files with 1,039 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 @@ -21,6 +21,7 @@ def is_included(backend):
ast = is_included("ast")
ast_new = is_included("ast_new")
asr = is_included("asr")
asr_json = is_included("asr_json")
llvm = is_included("llvm")
llvm_dbg = is_included("llvm_dbg")
cpp = is_included("cpp")
Expand Down Expand Up @@ -80,6 +81,15 @@ def is_included(backend):
update_reference,
extra_args)

if asr_json:
run_test(
filename,
"asr_json",
"lpython --show-asr --json {infile} -o {outfile}",
filename,
update_reference,
extra_args)

if pass_ is not None:
cmd = "lpython --pass=" + pass_ + \
" --show-asr --indent --no-color {infile} -o {outfile}"
Expand Down
13 changes: 13 additions & 0 deletions tests/reference/asr_json-modules_02-70a491a.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"basename": "asr_json-modules_02-70a491a",
"cmd": "lpython --show-asr --json {infile} -o {outfile}",
"infile": "tests/../integration_tests/modules_02.py",
"infile_hash": "dcb00ac27cbbcdec61d81f1df9e852ba81a2197e7804ec89cab76e44",
"outfile": null,
"outfile_hash": null,
"stdout": "asr_json-modules_02-70a491a.stdout",
"stdout_hash": "adc3ed3cc499317e76d8755750cbd9eee8f78810d3b83ecf6cfcef15",
"stderr": null,
"stderr_hash": null,
"returncode": 0
}
Loading

0 comments on commit 8506de2

Please sign in to comment.