Skip to content
Snippets Groups Projects

ci: add oe-selftest-gcc test job

Merged Chase Qi requested to merge (removed):gcc-test into kirkstone
4 files
+ 168
0
Compare changes
  • Side-by-side
  • Inline
Files
4
  • d1b10188
    ci: add oe-selftest gcc test jobs · d1b10188
    Chase Qi authored
    gcc test suite has been integrated in oe-selftest framework. It allows
    to run gcc test against qemu vm and within the build env using qemu
    linux-user mode.
    
    These tests can be run in gitlab CI with qemu friendly runners. This
    commit add three oe-selftest jobs to run the tests using qemu
    linux-user, qemu x86-64 vm and qemu arm64 vm.
    
    Test log and sum files are collected as job artifacts.
    
    When all test jobs finish, report job will be triggered to parse the
    sum files to generate results in the format that supported by squad. The
    report job will upload results to squad for reporting.
    
    Signed-off-by: default avatarChase Qi <chase.qi@linaro.org>
@@ -451,3 +451,35 @@
# Run this job in case the pipeline changes.
- .oniro-ci/*.yml
- .gitlab-ci.yml
# This job is documented in docs/ci/hidden-jobs/oe-selftest.rst
.oe-selftest:
image:
name: chaseqi/bitbake-builder:v1.3
tags: [qemu-friendly, large-disk, $CI_ONIRO_RUNNER_TAG, $CI_ONIRO_INSTANCE_SIZE]
extends: .bitbake-workspace
variables:
MACHINE: qemux86-64
CI_ONIRO_BUILD_FLAVOUR: linux
CI_ONIRO_BB_LOCAL_CONF_SANITY_TESTED_DISTROS: ""
CI_ONIRO_OE_SEFLTESTS: ""
CI_ONIRO_OE_SEFLTEST_SKIPS: ""
script:
- test -n "$CI_ONIRO_OE_SEFLTESTS" || (
echo "nothing to test - CI_ONIRO_OE_SEFLTESTS is empty"
&& exit 1 )
- !reference [.bitbake-workspace, script]
# The USER variable is required by oe-selftest but missing in env.
- export USER=builder
- echo "MACHINE = \"$MACHINE\"" >> conf/local.conf
- echo "Running specific tests $CI_ONIRO_OE_SEFLTESTS ..."
- time oe-selftest -vvv -r $CI_ONIRO_OE_SEFLTESTS -K
- artifacts_dir="$CI_PROJECT_DIR/artifacts/$CI_JOB_NAME"
- rm -rf "$artifacts_dir" & mkdir -p "$artifacts_dir"
- find ../build-st \( -name "*.sum" -o -name "*.log" \) \( -path "*/gcc-runtime/*testsuite*" \)
-exec cp --verbose {} "$artifacts_dir" \;
- for file in $(find "$artifacts_dir" -type f); do xz $file; done
- rm -rf ../build-st
artifacts:
paths:
- artifacts/$CI_JOB_NAME
Loading