Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Removed error banner from tests (#2631) #2640

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
30 changes: 15 additions & 15 deletions run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def is_included(backend):
"lpython --no-color --show-tokens {infile} -o {outfile}",
filename,
update_reference,
extra_args)
extra_args=extra_args)

if ast:
run_test(
Expand All @@ -65,7 +65,7 @@ def is_included(backend):
"lpython --show-ast --no-color {infile} -o {outfile}",
filename,
update_reference,
extra_args)
extra_args=extra_args)

if ast_new:
run_test(
Expand All @@ -74,7 +74,7 @@ def is_included(backend):
"lpython --show-ast --new-parser --no-color {infile} -o {outfile}",
filename,
update_reference,
extra_args)
extra_args=extra_args)

if asr:
run_test(
Expand All @@ -83,7 +83,7 @@ def is_included(backend):
"lpython --show-asr --no-color {infile} -o {outfile}",
filename,
update_reference,
extra_args)
extra_args=extra_args)

if asr_json:
run_test(
Expand All @@ -92,7 +92,7 @@ def is_included(backend):
"lpython --show-asr --json --no-color {infile} -o {outfile}",
filename,
update_reference,
extra_args)
extra_args=extra_args)

if pass_ is not None:
cmd = "lpython "
Expand All @@ -103,7 +103,7 @@ def is_included(backend):
cmd += "--pass=" + pass_ + \
" --show-asr --no-color {infile} -o {outfile}"
run_test(filename, "pass_{}".format(pass_), cmd,
filename, update_reference, extra_args)
filename, update_reference, extra_args=extra_args)

if no_llvm:
log.info(f"{filename} * llvm SKIPPED as requested")
Expand All @@ -115,7 +115,7 @@ def is_included(backend):
"lpython --no-color --show-llvm {infile} -o {outfile}",
filename,
update_reference,
extra_args)
extra_args=extra_args)
if llvm_dbg:
run_test(
filename,
Expand All @@ -124,31 +124,31 @@ def is_included(backend):
"{infile} -o {outfile}",
filename,
update_reference,
extra_args)
extra_args=extra_args)

if cpp:
run_test(filename, "cpp", "lpython --no-color --show-cpp {infile}",
filename, update_reference, extra_args)
filename, update_reference, extra_args=extra_args)

if c:
if disable_main:
run_test(filename, "c", "lpython --no-color --disable-main --show-c {infile}",
filename, update_reference, extra_args)
filename, update_reference, extra_args=extra_args)
else:
run_test(filename, "c", "lpython --no-color --show-c {infile}",
filename, update_reference, extra_args)
filename, update_reference, extra_args=extra_args)

if python:
run_test(filename, "python", "lpython --no-color --show-python {infile}",
filename, update_reference, extra_args)
filename, update_reference, extra_args=extra_args)

if wat:
run_test(filename, "wat", "lpython --no-color --show-wat {infile}",
filename, update_reference, extra_args)
filename, update_reference, extra_args=extra_args)

if run:
run_test(filename, "runtime", "lpython {infile}",
filename, update_reference, extra_args)
filename, update_reference, extra_args=extra_args)

if run_with_dbg:
if skip_run_with_dbg:
Expand All @@ -157,7 +157,7 @@ def is_included(backend):
run_test(
filename, "run_dbg",
"lpython {infile} -g --debug-with-line-column --no-color",
filename, update_reference, extra_args)
filename, update_reference, extra_args=extra_args)

if __name__ == "__main__":
tester_main("LPython", single_test)
2 changes: 1 addition & 1 deletion tests/reference/asr-arrays_01-a617b64.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"stdout": null,
"stdout_hash": null,
"stderr": "asr-arrays_01-a617b64.stderr",
"stderr_hash": "69f8656cd4ab2b5cc8b1555c5b089c764a36a817023697e5314a7815",
"stderr_hash": "b8317c7306f747ceefa8557c06f2a0b4a8a4bd7ae805bb494fca6ef2",
"returncode": 2
}
4 changes: 0 additions & 4 deletions tests/reference/asr-arrays_01-a617b64.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,3 @@ semantic error: Type mismatch in procedure call; the types must be compatible
|
9 | a : i8[4] = empty(4, dtype=int8)
| ^^^^^ type mismatch (passed argument type is list[i8] but required type is i8[4])


Note: Please report unclear or confusing messages as bugs at
https://github.com/lcompilers/lpython/issues.
2 changes: 1 addition & 1 deletion tests/reference/asr-arrays_02-da94458.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"stdout": null,
"stdout_hash": null,
"stderr": "asr-arrays_02-da94458.stderr",
"stderr_hash": "15fc716bf5d58791fd20510131f51127e7e99d1e8fab7a8d01e3b008",
"stderr_hash": "dc0e5be7cd6de7395421aedf1ce11977206f3e35bb7cba271aed8992",
"returncode": 2
}
4 changes: 0 additions & 4 deletions tests/reference/asr-arrays_02-da94458.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@ semantic error: The truth value of an array with more than one element is ambigu
|
28 | assert r1.a == t1.a
| ^^^^^^^^^^^^


Note: Please report unclear or confusing messages as bugs at
https://github.com/lcompilers/lpython/issues.
2 changes: 1 addition & 1 deletion tests/reference/asr-arrays_03-de2e952.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"stdout": null,
"stdout_hash": null,
"stderr": "asr-arrays_03-de2e952.stderr",
"stderr_hash": "42cba9a2472dd0b8fd0d081f97bfb17615c8efbe56fdb3f4ff709e48",
"stderr_hash": "4c932f31bbb10c9ba8d8d75be226ba9c33553be3bcb367c8112e31af",
"returncode": 2
}
4 changes: 0 additions & 4 deletions tests/reference/asr-arrays_03-de2e952.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@ semantic error: Type mismatch in annotation-assignment, the types must be compat
|
6 | x: i16[4] = empty([5], dtype=int16)
| ^ ^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i16[4]' and 'i16[5]')


Note: Please report unclear or confusing messages as bugs at
https://github.com/lcompilers/lpython/issues.
2 changes: 1 addition & 1 deletion tests/reference/asr-arrays_04-880407c.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"stdout": null,
"stdout_hash": null,
"stderr": "asr-arrays_04-880407c.stderr",
"stderr_hash": "40354354f9ae2e3eae5163f41ff6ce0298b5005bf4d13fd3e89cf48b",
"stderr_hash": "10ef155b0236096d5de8157e38b3989d99343b016a8153b68a36aa54",
"returncode": 2
}
4 changes: 0 additions & 4 deletions tests/reference/asr-arrays_04-880407c.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@ semantic error: Type mismatch in annotation-assignment, the types must be compat
|
6 | x: i16[5] = empty([5], dtype=int32)
| ^ ^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i16[5]' and 'i32[5]')


Note: Please report unclear or confusing messages as bugs at
https://github.com/lcompilers/lpython/issues.
2 changes: 1 addition & 1 deletion tests/reference/asr-arrays_05-ec8fbd5.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"stdout": null,
"stdout_hash": null,
"stderr": "asr-arrays_05-ec8fbd5.stderr",
"stderr_hash": "14eef4151e9c559cdcc637a009a39a4a965049d22f5393af3e83c5e1",
"stderr_hash": "4e5d42a186b8d82b484ec66ccc5a3b90da7e4be8a32bac26ea906198",
"returncode": 2
}
4 changes: 0 additions & 4 deletions tests/reference/asr-arrays_05-ec8fbd5.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@ semantic error: Type mismatch in annotation-assignment, the types must be compat
|
6 | x: i16[5, 4] = empty([5, 3], dtype=int16)
| ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i16[5,4]' and 'i16[5,3]')


Note: Please report unclear or confusing messages as bugs at
https://github.com/lcompilers/lpython/issues.
2 changes: 1 addition & 1 deletion tests/reference/asr-arrays_06-fbb09a3.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"stdout": null,
"stdout_hash": null,
"stderr": "asr-arrays_06-fbb09a3.stderr",
"stderr_hash": "0da1a817c8625225561019e08f1e47247998ed20bf3ab53e01c1963a",
"stderr_hash": "1fa3f5061a72f03c0678806c0460b9ec5caf01cbbd2f07a606f1057e",
"returncode": 2
}
4 changes: 0 additions & 4 deletions tests/reference/asr-arrays_06-fbb09a3.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@ semantic error: Type mismatch in annotation-assignment, the types must be compat
|
6 | x: i16[5, 4] = empty([5, 4], dtype=int32)
| ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i16[5,4]' and 'i32[5,4]')


Note: Please report unclear or confusing messages as bugs at
https://github.com/lcompilers/lpython/issues.
2 changes: 1 addition & 1 deletion tests/reference/asr-arrays_07-de430fd.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"stdout": null,
"stdout_hash": null,
"stderr": "asr-arrays_07-de430fd.stderr",
"stderr_hash": "6774eef8f3ca19c2ac8347014012d6daa8fd8d5382a22b29fb843a9f",
"stderr_hash": "7fadea44b4ad8f383e0cadbd27a53eb3ab75f0edef98d27639527723",
"returncode": 2
}
4 changes: 0 additions & 4 deletions tests/reference/asr-arrays_07-de430fd.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@ semantic error: Type mismatch in annotation-assignment, the types must be compat
|
6 | x: f32[5, 4] = empty([5, 4], dtype=complex64)
| ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('f32[5,4]' and 'c32[5,4]')


Note: Please report unclear or confusing messages as bugs at
https://github.com/lcompilers/lpython/issues.
2 changes: 1 addition & 1 deletion tests/reference/asr-arrays_08-ba317a3.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"stdout": null,
"stdout_hash": null,
"stderr": "asr-arrays_08-ba317a3.stderr",
"stderr_hash": "05ceaebc761f9c6981c8a418395b46ac7f0d7ee1f349b51b68accecb",
"stderr_hash": "bedb87b219b7c49a18cced170e4ffcac780d242f70c3ae8bbfb27a26",
"returncode": 2
}
4 changes: 0 additions & 4 deletions tests/reference/asr-arrays_08-ba317a3.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@ semantic error: Type mismatch in annotation-assignment, the types must be compat
|
9 | x: i64[p, q, r] = empty([q, p, r], dtype=int64)
| ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i64[100,120,200]' and 'i64[120,100,200]')


Note: Please report unclear or confusing messages as bugs at
https://github.com/lcompilers/lpython/issues.
2 changes: 1 addition & 1 deletion tests/reference/asr-arrays_09-50ee586.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"stdout": null,
"stdout_hash": null,
"stderr": "asr-arrays_09-50ee586.stderr",
"stderr_hash": "2a118c1202a5c3336eda7159c9d999acff05b5702f95564147e38b48",
"stderr_hash": "0169175ca66ace6110382408ed4506313e311d560e9b8c16bdd997b3",
"returncode": 2
}
4 changes: 0 additions & 4 deletions tests/reference/asr-arrays_09-50ee586.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@ semantic error: Only those local variables that can be reduced to compile-time c
|
9 | x: i64[p, q, r] = empty([q, p, r], dtype=int64)
| ^


Note: Please report unclear or confusing messages as bugs at
https://github.com/lcompilers/lpython/issues.
2 changes: 1 addition & 1 deletion tests/reference/asr-arrays_10-bc82d75.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"stdout": null,
"stdout_hash": null,
"stderr": "asr-arrays_10-bc82d75.stderr",
"stderr_hash": "0072f417616b40366ab4718be0e354d3ce1d0e9a76a2699a11c3274b",
"stderr_hash": "1c45f4b45b48ceb3de4567413bff847b67df2750fcc68d6a358df096",
"returncode": 2
}
4 changes: 0 additions & 4 deletions tests/reference/asr-arrays_10-bc82d75.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@ semantic error: Only those local variables that can be reduced to compile-time c
|
9 | x: i64[100, 120, 200] = empty([q, p, r], dtype=int64)
| ^


Note: Please report unclear or confusing messages as bugs at
https://github.com/lcompilers/lpython/issues.
2 changes: 1 addition & 1 deletion tests/reference/asr-arrays_11-fc505b4.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"stdout": null,
"stdout_hash": null,
"stderr": "asr-arrays_11-fc505b4.stderr",
"stderr_hash": "bc288ede8eb7bad0ba460ec8fa86fd970a362bd2fd42b59ae8245f21",
"stderr_hash": "ef5e89392b20ad345ba9bcf862ab71b19e56c85d9838db742be117a1",
"returncode": 2
}
4 changes: 0 additions & 4 deletions tests/reference/asr-arrays_11-fc505b4.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@ semantic error: Type mismatch in annotation-assignment, the types must be compat
|
5 | x: i16[4] = empty([5], dtype=int16)
| ^ ^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i16[4]' and 'i16[5]')


Note: Please report unclear or confusing messages as bugs at
https://github.com/lcompilers/lpython/issues.
2 changes: 1 addition & 1 deletion tests/reference/asr-arrays_12-63d6f25.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"stdout": null,
"stdout_hash": null,
"stderr": "asr-arrays_12-63d6f25.stderr",
"stderr_hash": "a278181ad1227b3371e16b43a19ae6bb9326f5be6a3abd1180fffbab",
"stderr_hash": "b6fa626301868bd5cbbef6d914f5b4f38b1d896b951753122969e74a",
"returncode": 2
}
4 changes: 0 additions & 4 deletions tests/reference/asr-arrays_12-63d6f25.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@ semantic error: Type mismatch in annotation-assignment, the types must be compat
|
5 | x: i16[5] = empty([5], dtype=int32)
| ^ ^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i16[5]' and 'i32[5]')


Note: Please report unclear or confusing messages as bugs at
https://github.com/lcompilers/lpython/issues.
2 changes: 1 addition & 1 deletion tests/reference/asr-arrays_13-b5fcc7e.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"stdout": null,
"stdout_hash": null,
"stderr": "asr-arrays_13-b5fcc7e.stderr",
"stderr_hash": "92e3dc9e94bf8aecba8229504351dc861f0a6dfdef8cb21f85fa4305",
"stderr_hash": "6bde2f7fc14d5a461a58d694e44e19dd79ef5bee47c88b4022daf5d6",
"returncode": 2
}
4 changes: 0 additions & 4 deletions tests/reference/asr-arrays_13-b5fcc7e.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@ semantic error: Type mismatch in annotation-assignment, the types must be compat
|
7 | x: i16[4] = empty(5, dtype=int16)
| ^ ^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i16[4]' and 'i16[5]')


Note: Please report unclear or confusing messages as bugs at
https://github.com/lcompilers/lpython/issues.
2 changes: 1 addition & 1 deletion tests/reference/asr-arrays_14-78be00e.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"stdout": null,
"stdout_hash": null,
"stderr": "asr-arrays_14-78be00e.stderr",
"stderr_hash": "be4da7730affe7f477cb84d11a75b7087ee9dbd0c51ccfa592641e81",
"stderr_hash": "267aea8e48708230a9b2bc61c37c849a0b75cb45294ca25ee11fe632",
"returncode": 2
}
4 changes: 0 additions & 4 deletions tests/reference/asr-arrays_14-78be00e.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@ semantic error: Type mismatch in annotation-assignment, the types must be compat
|
7 | x: i16[4] = empty((5), dtype=int16)
| ^ ^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i16[4]' and 'i16[5]')


Note: Please report unclear or confusing messages as bugs at
https://github.com/lcompilers/lpython/issues.
2 changes: 1 addition & 1 deletion tests/reference/asr-bindc_01-f761165.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"stdout": null,
"stdout_hash": null,
"stderr": "asr-bindc_01-f761165.stderr",
"stderr_hash": "5171127abfe429f4fd3b02095634e99e83408c53d1ae57568ee1cafc",
"stderr_hash": "b2d416fa6afa00923a130cb76dbd580798a9ee0841e34980c531b050",
"returncode": 2
}
4 changes: 0 additions & 4 deletions tests/reference/asr-bindc_01-f761165.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,3 @@ semantic error: Type mismatch in procedure call; the types must be compatible
|
4 | def cptr_arg(arg1: CPtr):
| ^^^^ type mismatch (passed argument type is i32 but required type is CPtr)


Note: Please report unclear or confusing messages as bugs at
https://github.com/lcompilers/lpython/issues.
2 changes: 1 addition & 1 deletion tests/reference/asr-bindc_02-5092d8e.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"stdout": null,
"stdout_hash": null,
"stderr": "asr-bindc_02-5092d8e.stderr",
"stderr_hash": "daeb0d3e1c14acbdcd6e78566d1ebb34ef56ff4487c962a34fa7c65d",
"stderr_hash": "315076027d80c91db75f4ec44ea5cf8d5fd37a499a367f627b6f6553",
"returncode": 2
}
4 changes: 0 additions & 4 deletions tests/reference/asr-bindc_02-5092d8e.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,3 @@ semantic error: Type mismatch in procedure call; the types must be compatible
|
5 | cptr_member: CPtr
| ^^^^ type mismatch (passed argument type is i32 but required type is CPtr)


Note: Please report unclear or confusing messages as bugs at
https://github.com/lcompilers/lpython/issues.
2 changes: 1 addition & 1 deletion tests/reference/asr-bindc_03-95dbba7.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"stdout": null,
"stdout_hash": null,
"stderr": "asr-bindc_03-95dbba7.stderr",
"stderr_hash": "945230d4a2ff6c48f1c4c4ec9825a13bd73ae9cca2b906edf9b4d99a",
"stderr_hash": "371c3fc384c0e72448648d5a3734a373fe96ba258b261f0695ccb518",
"returncode": 2
}
4 changes: 0 additions & 4 deletions tests/reference/asr-bindc_03-95dbba7.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@ semantic error: Target type specified in c_p_pointer must have deferred shape.
|
6 | A: Pointer[i16[:]] = c_p_pointer(b, i16[n * k], array([k * n]))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


Note: Please report unclear or confusing messages as bugs at
https://github.com/lcompilers/lpython/issues.
Loading