diff --git a/.cci.jenkinsfile b/.cci.jenkinsfile index 3336f8effd..92c38b830b 100644 --- a/.cci.jenkinsfile +++ b/.cci.jenkinsfile @@ -21,6 +21,10 @@ pod(image: imageName + ":latest", kvm: true, cpu: "${cpuCount}", memory: "${memo // Run stage Build FCOS (init, fetch and build) cosaBuild(skipKola: 1, cosaDir: "/srv", noForce: true) + stage("cosa run tests") { + shwrap("./ci/run-cosa-self-tests") + } + // Run stage Kola QEMU (basic-qemu-scenarios, upgrade and self tests) kola(cosaDir: "/srv", addExtTests: ["${env.WORKSPACE}/ci/run-kola-self-tests"]) diff --git a/ci/run-cosa-self-tests b/ci/run-cosa-self-tests new file mode 100755 index 0000000000..fef5a94c3e --- /dev/null +++ b/ci/run-cosa-self-tests @@ -0,0 +1,11 @@ +#!/bin/bash +# This verifies e.g. `cosa run`. +set -xeuo pipefail +tmpdir=$(mktemp -d -p /var/tmp) +cd ${tmpdir} +coreos-installer download -a s390x -p qemu -f qcow2.xz --decompress +cosa run --arch s390x *.qcow2 -x "cat /proc/cpuinfo" > cpuinfo.txt +grep -F 'IBM/S390' cpuinfo.txt +cd - +rm "${tmpdir}" -rf +echo "ok cosa run full emulation"