summaryrefslogtreecommitdiffstatshomepage
path: root/tools/ci.sh
diff options
context:
space:
mode:
authorAlessandro Gatti <a.gatti@frob.it>2025-01-24 18:00:05 +0100
committerDamien George <damien@micropython.org>2025-02-07 17:37:04 +1100
commitf594c6f66ec49e02ba06165d1f1db202d82575ec (patch)
tree8116fc4f270530dc7083f1beec15e552a1bcb856 /tools/ci.sh
parentca3090a33f06da57221827ad506d80cb1f826b99 (diff)
downloadmicropython-f594c6f66ec49e02ba06165d1f1db202d82575ec.tar.gz
micropython-f594c6f66ec49e02ba06165d1f1db202d82575ec.zip
tools/ci.sh: Add natmod tests for QEMU/Arm.
This commit adds the natmod tests for the MPS2_AN385 board running inside QEMU to the CI pipeline. Now natmod tests capabilities are equal between the Arm and RV32 platforms for the QEMU port. Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
Diffstat (limited to 'tools/ci.sh')
-rwxr-xr-xtools/ci.sh25
1 files changed, 14 insertions, 11 deletions
diff --git a/tools/ci.sh b/tools/ci.sh
index 374395abd2..2c647012f1 100755
--- a/tools/ci.sh
+++ b/tools/ci.sh
@@ -266,6 +266,7 @@ function ci_powerpc_build {
# ports/qemu
function ci_qemu_setup_arm {
+ ci_mpy_format_setup
ci_gcc_arm_setup
sudo apt-get update
sudo apt-get install qemu-system
@@ -287,6 +288,10 @@ function ci_qemu_build_arm {
make ${MAKEOPTS} -C ports/qemu clean
make ${MAKEOPTS} -C ports/qemu test_full
make ${MAKEOPTS} -C ports/qemu BOARD=SABRELITE test_full
+
+ # Test building and running native .mpy with armv7m architecture.
+ ci_native_mpy_modules_build armv7m
+ make ${MAKEOPTS} -C ports/qemu test_natmod
}
function ci_qemu_build_rv32 {
@@ -480,20 +485,18 @@ function ci_native_mpy_modules_build {
else
arch=$1
fi
- make -C examples/natmod/features1 ARCH=$arch
+ for natmod in features1 features3 features4 deflate framebuf heapq random re
+ do
+ make -C examples/natmod/$natmod ARCH=$arch
+ done
+ # btree requires thread local storage support on rv32imc.
if [ $arch != rv32imc ]; then
- # This requires soft-float support on rv32imc.
- make -C examples/natmod/features2 ARCH=$arch
- # This requires thread local storage support on rv32imc.
make -C examples/natmod/btree ARCH=$arch
fi
- make -C examples/natmod/features3 ARCH=$arch
- make -C examples/natmod/features4 ARCH=$arch
- make -C examples/natmod/deflate ARCH=$arch
- make -C examples/natmod/framebuf ARCH=$arch
- make -C examples/natmod/heapq ARCH=$arch
- make -C examples/natmod/random ARCH=$arch
- make -C examples/natmod/re ARCH=$arch
+ # features2 requires soft-float on armv7m and rv32imc.
+ if [ $arch != rv32imc ] && [ $arch != armv7m ]; then
+ make -C examples/natmod/features2 ARCH=$arch
+ fi
}
function ci_native_mpy_modules_32bit_build {