Skip to content

Commit 3cf54fa

Browse files
committed
ci: Test full-emulation cosa run
We should have some CI that verifies this works.
1 parent 5cf1cfd commit 3cf54fa

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.cci.jenkinsfile

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ pod(image: imageName + ":latest", kvm: true, cpu: "${cpuCount}", memory: "${memo
2121
// Run stage Build FCOS (init, fetch and build)
2222
cosaBuild(skipKola: 1, cosaDir: "/srv", noForce: true)
2323

24+
stage("cosa run tests") {
25+
shwrap("./ci/run-cosa-self-tests")
26+
}
27+
2428
// Run stage Kola QEMU (basic-qemu-scenarios, upgrade and self tests)
2529
kola(cosaDir: "/srv", addExtTests: ["${env.WORKSPACE}/ci/run-kola-self-tests"])
2630

ci/run-cosa-self-tests

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
# This verifies e.g. `cosa run`.
3+
set -xeuo pipefail
4+
tmpdir=$(mktemp -d -p /var/tmp)
5+
cd ${tmpdir}
6+
coreos-installer download -a s390x -p qemu -f qcow2.xz --decompress
7+
cosa run --arch s390x *.qcow2 -x "cat /proc/cpuinfo" > cpuinfo.txt
8+
grep -F 'IBM/S390' cpuinfo.txt
9+
cd -
10+
rm "${tmpdir}" -rf
11+
echo "ok cosa run full emulation"

0 commit comments

Comments
 (0)