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
+ 123
0
Compare changes
  • Side-by-side
  • Inline
Files
4
  • cb878294
    ci: add oe-selftest gcc test jobs · cb878294
    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.
    
    Signed-off-by: default avatarChase Qi <chase.qi@linaro.org>
@@ -451,3 +451,36 @@
@@ -451,3 +451,36 @@
# Run this job in case the pipeline changes.
# Run this job in case the pipeline changes.
- .oniro-ci/*.yml
- .oniro-ci/*.yml
- .gitlab-ci.yml
- .gitlab-ci.yml
 
 
# This job is documented in docs/ci/hidden-jobs/oe-selftest.rst
 
.oe-selftest:
 
image:
 
# TODO(Chase): move to registry.ostc-eu.org/ostc/oniro/oe-selftest:latest
 
# once it is available.
 
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
 
- mkdir -p "$CI_PROJECT_DIR"/artifacts && rm -rf "$CI_PROJECT_DIR"/artifacts/*
 
- find ../build-st \( -name "*.sum" -o -name "*.log" \) \( -path "*/gcc-runtime/*testsuite*" \)
 
-exec cp --verbose {} "$CI_PROJECT_DIR"/artifacts/ \;
 
- for file in $(find "$CI_PROJECT_DIR"/artifacts/ -type f); do xz $file; done
 
- rm -rf ../build-st
 
artifacts:
 
paths:
 
- artifacts/
Loading