summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2022-05-26 12:27:04 +1000
committerDamien George <damien@micropython.org>2022-05-26 12:54:43 +1000
commit20d9f3409a9b2fdd4079e05acb4d24b2877fb5c5 (patch)
tree8f8d50bb6ba81d3f6de62480e8b8bf729e0f2d2d /tests
parent80a86c48e33afc4d1f964c407f0441161eeed71d (diff)
tests/run-tests.py: Add rp2 test target.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/run-tests.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/run-tests.py b/tests/run-tests.py
index 0cfd50f5c..5b08ad2bb 100755
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -897,7 +897,16 @@ the last matching regex is used:
"unix",
"qemu-arm",
)
- EXTERNAL_TARGETS = ("pyboard", "wipy", "esp8266", "esp32", "minimal", "nrf", "renesas-ra")
+ EXTERNAL_TARGETS = (
+ "pyboard",
+ "wipy",
+ "esp8266",
+ "esp32",
+ "minimal",
+ "nrf",
+ "renesas-ra",
+ "rp2",
+ )
if args.target in LOCAL_TARGETS or args.list_tests:
pyb = None
elif args.target in EXTERNAL_TARGETS:
@@ -910,6 +919,10 @@ the last matching regex is used:
args.mpy_cross_flags = "-march=xtensa"
elif args.target == "esp32":
args.mpy_cross_flags = "-march=xtensawin"
+ elif args.target == "rp2":
+ args.mpy_cross_flags = "-march=armv6m"
+ elif args.target == "pyboard":
+ args.mpy_cross_flags = "-march=armv7emsp"
else:
args.mpy_cross_flags = "-march=armv7m"
@@ -931,6 +944,8 @@ the last matching regex is used:
test_dirs += ("float", "stress", "pyb", "pybnative", "inlineasm")
elif args.target in ("renesas-ra"):
test_dirs += ("float", "inlineasm", "renesas-ra")
+ elif args.target == "rp2":
+ test_dirs += ("float", "stress", "inlineasm")
elif args.target in ("esp8266", "esp32", "minimal", "nrf"):
test_dirs += ("float",)
elif args.target == "wipy":