automation: add a Dom0 PVH test based on Qubes' runner

Straightforward Dom0 PVH test based on the existing basic Smoke test for
the Qubes runner.

Signed-off-by: Stefano Stabellini <stefano.stabellini@amd.com>
Acked-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
This commit is contained in:
Stefano Stabellini committed 2023-05-15 14:46:36 -07:00
1 parent 56e2c8e586
commit be6aa637db
2 files changed
+17 -5

No files matched your search

+8
View File
@@ -149,6 +149,14 @@ adl-smoke-x86-64-gcc-debug:
- *x86-64-test-needs
- alpine-3.12-gcc-debug
adl-smoke-x86-64-dom0pvh-gcc-debug:
extends: .adl-x86-64
script:
- ./automation/scripts/qubes-x86-64.sh dom0pvh 2>&1 | tee ${LOGFILE}
needs:
- *x86-64-test-needs
- alpine-3.12-gcc-debug
adl-suspend-x86-64-gcc-debug:
extends: .adl-x86-64
script:
+9 -5
View File
@@ -5,6 +5,7 @@ set -ex
test_variant=$1
### defaults
extra_xen_opts=
wait_and_wakeup=
timeout=120
domU_config='
@@ -18,8 +19,8 @@ vif = [ "bridge=xenbr0", ]
disk = [ ]
'
### test: smoke test
if [ -z "${test_variant}" ]; then
### test: smoke test & smoke test PVH
if [ -z "${test_variant}" ] || [ "${test_variant}" = "dom0pvh" ]; then
passed="ping test passed"
domU_check="
ifconfig eth0 192.168.0.2
@@ -36,6 +37,9 @@ done
tail -n 100 /var/log/xen/console/guest-domU.log
echo \"${passed}\"
"
if [ "${test_variant}" = "dom0pvh" ]; then
extra_xen_opts="dom0=pvh"
fi
### test: S3
elif [ "${test_variant}" = "s3" ]; then
@@ -184,11 +188,11 @@ cd ..
TFTP=/scratch/gitlab-runner/tftp
CONTROLLER=control@thor.testnet
echo '
multiboot2 (http)/gitlab-ci/xen console=com1 com1=115200,8n1 loglvl=all guest_loglvl=all dom0_mem=4G
echo "
multiboot2 (http)/gitlab-ci/xen console=com1 com1=115200,8n1 loglvl=all guest_loglvl=all dom0_mem=4G $extra_xen_opts
module2 (http)/gitlab-ci/vmlinuz console=hvc0 root=/dev/ram0
module2 (http)/gitlab-ci/initrd-dom0
' > $TFTP/grub.cfg
" > $TFTP/grub.cfg
cp -f binaries/xen $TFTP/xen
cp -f binaries/bzImage $TFTP/vmlinuz
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.