Skip to content

Commit

Permalink
tests/run-tests.py: Add rp2 test target.
Browse files Browse the repository at this point in the history
Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed May 26, 2022
1 parent 80a86c4 commit 20d9f34
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion tests/run-tests.py
Expand Up @@ -897,7 +897,16 @@ def main():
"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:
Expand All @@ -910,6 +919,10 @@ def main():
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"

Expand All @@ -931,6 +944,8 @@ def main():
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":
Expand Down

0 comments on commit 20d9f34

Please sign in to comment.