variables:
CONTAINER: debian:stretch
script:
- - ./automation/scripts/qemu-smoke-x86-64.sh 2>&1 | tee qemu-smoke-x86-64.log
+ - ./automation/scripts/qemu-smoke-x86-64.sh pv 2>&1 | tee qemu-smoke-x86-64.log
artifacts:
paths:
- smoke.serial
variables:
CONTAINER: debian:stretch
script:
- - ./automation/scripts/qemu-smoke-x86-64.sh 2>&1 | tee qemu-smoke-x86-64.log
+ - ./automation/scripts/qemu-smoke-x86-64.sh pv 2>&1 | tee qemu-smoke-x86-64.log
+ artifacts:
+ paths:
+ - smoke.serial
+ - '*.log'
+ when: always
+ dependencies:
+ - debian-unstable-clang-debug
+ tags:
+ - x86_64
+ except:
+ - master
+ - smoke
+ - /^coverity-tested\/.*/
+ - /^stable-.*/
+
+qemu-smoke-x86-64-gcc-pvh:
+ stage: test
+ image: registry.gitlab.com/xen-project/xen/${CONTAINER}
+ variables:
+ CONTAINER: debian:stretch
+ script:
+ - ./automation/scripts/qemu-smoke-x86-64.sh pvh 2>&1 | tee qemu-smoke-x86-64.log
+ artifacts:
+ paths:
+ - smoke.serial
+ - '*.log'
+ when: always
+ dependencies:
+ - debian-stretch-gcc-debug
+ tags:
+ - x86_64
+ except:
+ - master
+ - smoke
+ - /^coverity-tested\/.*/
+ - /^stable-.*/
+
+qemu-smoke-x86-64-clang-pvh:
+ stage: test
+ image: registry.gitlab.com/xen-project/xen/${CONTAINER}
+ variables:
+ CONTAINER: debian:stretch
+ script:
+ - ./automation/scripts/qemu-smoke-x86-64.sh pvh 2>&1 | tee qemu-smoke-x86-64.log
artifacts:
paths:
- smoke.serial
set -ex
+# variant should be either pv or pvh
+variant=$1
+
# Install QEMU
export DEBIAN_FRONTENT=noninteractive
apt-get -qy update
git clone https://xenbits.xen.org/git-http/xtf.git
cd xtf && make -j$(nproc) && cd -
+case $variant in
+ pvh) k=test-hvm32pae-example extra="dom0-iommu=none dom0=pvh" ;;
+ *) k=test-pv32pae-example extra= ;;
+esac
+
rm -f smoke.serial
set +e
timeout -k 1 10 \
qemu-system-x86_64 -nographic -kernel binaries/xen \
- -initrd xtf/tests/example/test-pv32pae-example \
- -append 'loglvl=all com1=115200,,8n1 console=com1 noreboot' \
+ -initrd xtf/tests/example/$k \
+ -append "loglvl=all com1=115200,,8n1 console=com1 noreboot $extra" \
-m 512 -monitor none -serial file:smoke.serial
set -e
grep -q 'Test result: SUCCESS' smoke.serial || exit 1