Skip to content
Snippets Groups Projects

ci: add oe-selftest-gcc test job

Merged Chase Qi requested to merge (removed):gcc-test into kirkstone
All threads resolved!
Compare and
4 files
+ 168
0
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -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