diff options
Diffstat (limited to 'tests/run-tests.py')
| -rwxr-xr-x | tests/run-tests.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/run-tests.py b/tests/run-tests.py index 1e1bd160a..fa6c2a033 100755 --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -678,6 +678,8 @@ def run_tests(pyb, tests, args, result_dir, num_threads=1): ) # RA fsp rtc function doesn't support nano sec info elif args.target == "qemu-arm": skip_tests.add("misc/print_exception.py") # requires sys stdfiles + elif args.target == "qemu-riscv": + skip_tests.add("misc/print_exception.py") # requires sys stdfiles elif args.target == "webassembly": skip_tests.add("basics/string_format_modulo.py") # can't print nulls to stdout skip_tests.add("basics/string_strip.py") # can't print nulls to stdout @@ -1048,6 +1050,7 @@ the last matching regex is used: LOCAL_TARGETS = ( "unix", "qemu-arm", + "qemu-riscv", "webassembly", ) EXTERNAL_TARGETS = ( @@ -1151,6 +1154,12 @@ the last matching regex is used: "inlineasm", "ports/qemu-arm", ) + elif args.target == "qemu-riscv": + if not args.write_exp: + raise ValueError("--target=qemu-riscv must be used with --write-exp") + # Generate expected output files for qemu run. + # This list should match the test_dirs tuple in tinytest-codegen.py. + test_dirs += ("float",) elif args.target == "webassembly": test_dirs += ("float", "ports/webassembly") else: |
