Skip to content

Commit

Permalink
ci: Test full-emulation cosa run
Browse files Browse the repository at this point in the history
We should have some CI that verifies this works.
  • Loading branch information
cgwalters committed Nov 30, 2022
1 parent 5cf1cfd commit 3cf54fa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .cci.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"])

Expand Down
11 changes: 11 additions & 0 deletions ci/run-cosa-self-tests
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 3cf54fa

Please sign in to comment.