summaryrefslogtreecommitdiff
path: root/tests/run-tests.py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2023-12-06 16:05:37 +1100
committerDamien George <damien@micropython.org>2023-12-06 16:05:37 +1100
commitd30d5c99afba705e8286e9177768e0e38db59fff (patch)
tree6b6581752ba0610e32060331953bb4278ab94e42 /tests/run-tests.py
parentb796f1e3f12f3c0a0a75b4b1b7f01f234a3f4dda (diff)
tests/run-tests.py: Skip Thumb2 tests if target doesn't support them.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/run-tests.py')
-rwxr-xr-xtests/run-tests.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/run-tests.py b/tests/run-tests.py
index 2d511c20c..2dc387946 100755
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -465,6 +465,21 @@ def run_tests(pyb, tests, args, result_dir, num_threads=1):
if output != b"a=1\n":
skip_fstring = True
+ # Check if @micropython.asm_thumb supports Thumb2 instructions, and skip such tests if it doesn't
+ output = run_feature_check(pyb, args, base_path, "inlineasm_thumb2.py")
+ if output != b"thumb2\n":
+ skip_tests.add("inlineasm/asmbcc.py")
+ skip_tests.add("inlineasm/asmbitops.py")
+ skip_tests.add("inlineasm/asmconst.py")
+ skip_tests.add("inlineasm/asmdiv.py")
+ skip_tests.add("inlineasm/asmfpaddsub.py")
+ skip_tests.add("inlineasm/asmfpcmp.py")
+ skip_tests.add("inlineasm/asmfpldrstr.py")
+ skip_tests.add("inlineasm/asmfpmuldiv.py")
+ skip_tests.add("inlineasm/asmfpsqrt.py")
+ skip_tests.add("inlineasm/asmit.py")
+ skip_tests.add("inlineasm/asmspecialregs.py")
+
# Check if emacs repl is supported, and skip such tests if it's not
t = run_feature_check(pyb, args, base_path, "repl_emacs_check.py")
if "True" not in str(t, "ascii"):