Skip to content

Commit 755eb64

Browse files
author
Wei Liu
committed
automation: introduce a QEMU smoke test for PVH Dom0
Make qemu-smoke-x86-64.sh take a variant argument. Make two new tests in test.yaml. Signed-off-by: Wei Liu <[email protected]> Acked-by: Doug Goldstein <[email protected]> Release-acked-by: Juergen Gross <[email protected]>
1 parent ae29aa0 commit 755eb64

File tree

2 files changed

+56
-4
lines changed

2 files changed

+56
-4
lines changed

automation/gitlab-ci/test.yaml

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ qemu-smoke-x86-64-gcc:
55
variables:
66
CONTAINER: debian:stretch
77
script:
8-
- ./automation/scripts/qemu-smoke-x86-64.sh 2>&1 | tee qemu-smoke-x86-64.log
8+
- ./automation/scripts/qemu-smoke-x86-64.sh pv 2>&1 | tee qemu-smoke-x86-64.log
99
artifacts:
1010
paths:
1111
- smoke.serial
@@ -27,7 +27,51 @@ qemu-smoke-x86-64-clang:
2727
variables:
2828
CONTAINER: debian:stretch
2929
script:
30-
- ./automation/scripts/qemu-smoke-x86-64.sh 2>&1 | tee qemu-smoke-x86-64.log
30+
- ./automation/scripts/qemu-smoke-x86-64.sh pv 2>&1 | tee qemu-smoke-x86-64.log
31+
artifacts:
32+
paths:
33+
- smoke.serial
34+
- '*.log'
35+
when: always
36+
dependencies:
37+
- debian-unstable-clang-debug
38+
tags:
39+
- x86_64
40+
except:
41+
- master
42+
- smoke
43+
- /^coverity-tested\/.*/
44+
- /^stable-.*/
45+
46+
qemu-smoke-x86-64-gcc-pvh:
47+
stage: test
48+
image: registry.gitlab.com/xen-project/xen/${CONTAINER}
49+
variables:
50+
CONTAINER: debian:stretch
51+
script:
52+
- ./automation/scripts/qemu-smoke-x86-64.sh pvh 2>&1 | tee qemu-smoke-x86-64.log
53+
artifacts:
54+
paths:
55+
- smoke.serial
56+
- '*.log'
57+
when: always
58+
dependencies:
59+
- debian-stretch-gcc-debug
60+
tags:
61+
- x86_64
62+
except:
63+
- master
64+
- smoke
65+
- /^coverity-tested\/.*/
66+
- /^stable-.*/
67+
68+
qemu-smoke-x86-64-clang-pvh:
69+
stage: test
70+
image: registry.gitlab.com/xen-project/xen/${CONTAINER}
71+
variables:
72+
CONTAINER: debian:stretch
73+
script:
74+
- ./automation/scripts/qemu-smoke-x86-64.sh pvh 2>&1 | tee qemu-smoke-x86-64.log
3175
artifacts:
3276
paths:
3377
- smoke.serial

automation/scripts/qemu-smoke-x86-64.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
set -ex
44

5+
# variant should be either pv or pvh
6+
variant=$1
7+
58
# Install QEMU
69
export DEBIAN_FRONTENT=noninteractive
710
apt-get -qy update
@@ -11,12 +14,17 @@ apt-get -qy install qemu-system-x86
1114
git clone https://xenbits.xen.org/git-http/xtf.git
1215
cd xtf && make -j$(nproc) && cd -
1316

17+
case $variant in
18+
pvh) k=test-hvm32pae-example extra="dom0-iommu=none dom0=pvh" ;;
19+
*) k=test-pv32pae-example extra= ;;
20+
esac
21+
1422
rm -f smoke.serial
1523
set +e
1624
timeout -k 1 10 \
1725
qemu-system-x86_64 -nographic -kernel binaries/xen \
18-
-initrd xtf/tests/example/test-pv32pae-example \
19-
-append 'loglvl=all com1=115200,,8n1 console=com1 noreboot' \
26+
-initrd xtf/tests/example/$k \
27+
-append "loglvl=all com1=115200,,8n1 console=com1 noreboot $extra" \
2028
-m 512 -monitor none -serial file:smoke.serial
2129
set -e
2230
grep -q 'Test result: SUCCESS' smoke.serial || exit 1

0 commit comments

Comments
 (0)