]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
automation: introduce a QEMU smoke test for PVH Dom0 4.12-rc2
authorWei Liu <wei.liu2@citrix.com>
Thu, 24 Jan 2019 14:03:48 +0000 (14:03 +0000)
committerWei Liu <wei.liu2@citrix.com>
Fri, 1 Feb 2019 15:13:25 +0000 (15:13 +0000)
Make qemu-smoke-x86-64.sh take a variant argument. Make two new tests
in test.yaml.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Doug Goldstein <cardoe@cardoe.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
automation/gitlab-ci/test.yaml
automation/scripts/qemu-smoke-x86-64.sh

index 8bfa0fba5f9aa37436486bf450767a658bf92a8a..fea097941e60b57499978820b6e1ecaaa5be05ff 100644 (file)
@@ -5,7 +5,7 @@ qemu-smoke-x86-64-gcc:
   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
@@ -27,7 +27,51 @@ qemu-smoke-x86-64-clang:
   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
index 7dc2c8542b12c7dcad93060cdc127e8c2c5f8524..5fa3a63dbdfef33c475021693ef2df68c64383f9 100755 (executable)
@@ -2,6 +2,9 @@
 
 set -ex
 
+# variant should be either pv or pvh
+variant=$1
+
 # Install QEMU
 export DEBIAN_FRONTENT=noninteractive
 apt-get -qy update
@@ -11,12 +14,17 @@ apt-get -qy install qemu-system-x86
 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