1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-06-02 13:30:09 +00:00

CI: Add zephyr testimage

Add the ability to run testimage against zephyr machines.
Unfortunately, this exposes a bug in meta-zephyr with TESTIMAGE_AUTO not
working correctly.  So, work around this until it can be fixed upstream.
Also, qemu-cortex-a53 does not successfully pass any of the tests it
successfully builds.  So, don't run testimage until that can be
addressed.

Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
Jon Mason
2021-10-08 12:32:06 -04:00
parent 335104d6cb
commit 98193f3b61
5 changed files with 52 additions and 4 deletions
+16 -2
View File
@@ -37,6 +37,17 @@ stages:
- kas build $KASFILES - kas build $KASFILES
- ./ci/check-warnings $KAS_WORK_DIR/build/warnings.log - ./ci/check-warnings $KAS_WORK_DIR/build/warnings.log
# Workaround for Zephyr not currectly handling TESTIMAGE_AUTO
.build_and_test:
extends: .setup
script:
- KASFILES=$(./ci/jobs-to-kas $CI_JOB_NAME)
- kas shell --update --force-checkout $KASFILES -c 'cat conf/*.conf'
- kas build $KASFILES
- kas build $KASFILES -c testimage
- ./ci/check-warnings $KAS_WORK_DIR/build/warnings.log
# #
# Prep stage, update repositories once # Prep stage, update repositories once
# #
@@ -130,8 +141,8 @@ juno:
juno/clang: juno/clang:
extends: .build extends: .build
microbit-v1: microbit-v1/testimage-zephyr:
extends: .build extends: .build_and_test
musca-b1: musca-b1:
extends: .build extends: .build
@@ -148,6 +159,9 @@ n1sdp/armgcc:
qemu-cortex-a53: qemu-cortex-a53:
extends: .build extends: .build
qemu-cortex-m3/testimage-zephyr:
extends: .build_and_test
qemu-cortex-r5: qemu-cortex-r5:
extends: .build extends: .build
+7 -1
View File
@@ -4,7 +4,13 @@ header:
- base.yml - base.yml
- meta-zephyr.yml - meta-zephyr.yml
local_conf_header:
nonbuilding_tests: |
ZEPHYRTESTS:remove = "common"
failing_tests: |
ZEPHYRTESTS:remove = "context early_sleep sleep"
machine: microbit-v1 machine: microbit-v1
target: target:
- zephyr-philosophers - zephyr-kernel-test-all
+5 -1
View File
@@ -4,7 +4,11 @@ header:
- base.yml - base.yml
- meta-zephyr.yml - meta-zephyr.yml
local_conf_header:
nonbuilding_tests: |
ZEPHYRTESTS:remove += "common device poll queue sleep"
machine: qemu-cortex-a53 machine: qemu-cortex-a53
target: target:
- zephyr-philosophers - zephyr-kernel-test-all
+16
View File
@@ -0,0 +1,16 @@
header:
version: 9
includes:
- base.yml
- meta-zephyr.yml
local_conf_header:
tclibc: |
TCLIBC = "newlib"
nonbuilding_tests: |
ZEPHYRTESTS:remove = "common context pending poll sleep"
machine: qemu-cortex-m3
target:
- zephyr-kernel-test-all
+8
View File
@@ -0,0 +1,8 @@
header:
version: 9
local_conf_header:
testimage: |
IMAGE_CLASSES += "testimage"
TEST_TARGET = "QemuTargetZephyr"
TEST_SUITES = "zephyr"