diff options
author | Chase Qi <chase.qi@linaro.org> | 2017-10-16 19:31:30 +0800 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2017-10-19 14:02:25 +0000 |
commit | 59d22b27868a14b53fa9a705ed72baf997fa498f (patch) | |
tree | e5f4330cc10c3c44206ad293e95a7ff0402df26d /zephyr-upstream-arm.yaml | |
parent | b7bc7a7e7ff23638942d095f724387bb19f4cf8d (diff) |
zephyr-upstream: discover test list dynamically
The problem of hardcoded test list is that not all tests are build for
all devices. For example BT tests are not suitable on qemu.
To solve the above issue, this patch generates test list by finding all
the zephyr.bin files in out/${PLATFORM}/tests directory. Some of the
tests don't produce usable output, they are excluded.
Change-Id: Icb1468423009fadcd1e39f54007a9462fa76aaa7
Signed-off-by: Chase Qi <chase.qi@linaro.org>
Diffstat (limited to 'zephyr-upstream-arm.yaml')
-rw-r--r-- | zephyr-upstream-arm.yaml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zephyr-upstream-arm.yaml b/zephyr-upstream-arm.yaml index 6d158ef38e..aa2f4cc26d 100644 --- a/zephyr-upstream-arm.yaml +++ b/zephyr-upstream-arm.yaml @@ -113,7 +113,6 @@ --link-latest \ out/${PLATFORM} components/kernel/zephyr/${BRANCH}/${ZEPHYR_GCC_VARIANT}/${PLATFORM}/${BUILD_NUMBER} - rm -rf out - shell: | #!/bin/bash -e @@ -152,6 +151,9 @@ --gcc-variant ${ZEPHYR_GCC_VARIANT} \ --git-commit ${GIT_COMMIT} \ --build-url ${BUILD_URL} + --test-list "$(find out/${PLATFORM}/tests -type f -name zephyr.bin)" + + rm -rf out publishers: - archive: artifacts: 'scripts/sanity_chk/last_sanity.csv' |