]> xenbits.xensource.com Git - raisin.git/commitdiff
Introduce cirros-qemu-pvhvm test
authorGéza Gémes <geza.gemes@gmail.com>
Sat, 25 Mar 2017 19:29:00 +0000 (20:29 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Mon, 27 Mar 2017 18:44:30 +0000 (11:44 -0700)
This test is similar to cirros-qemu-hvm test, differing by
explicitly exposing the xen netfront and blockfront drivers

Signed-off-by: Géza Gémes <geza.gemes@gmail.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
tests/cirros-qemu-pvhvm [new file with mode: 0644]
tests/series

diff --git a/tests/cirros-qemu-pvhvm b/tests/cirros-qemu-pvhvm
new file mode 100644 (file)
index 0000000..6cf33e0
--- /dev/null
@@ -0,0 +1,27 @@
+#!/usr/bin/env bash
+
+set -e
+
+function cirros-qemu-pvhvm-cleanup() {
+    tear_down_cirros_test $testdir
+}
+
+function cirros-qemu-pvhvm-test() {
+    download_cirros_components
+    testdir=`mktemp -d`
+    cp $CIRROS_DOWNLOADS/$CIRROS_DISK_FILE $testdir
+    cat >$testdir/cirros-qemu-pvhvm.cfg <<EOF
+name = "raisin-test"
+builder = "hvm"
+xen_platform_pci = 1
+memory = 128
+vcpus = 2
+disk = [ '$testdir/$CIRROS_DISK_FILE,raw,xvda,rw' ]
+vif = [ 'bridge=xenbr1' ]
+serial="pty"
+boot="c"
+EOF
+
+    $SUDO xl create $testdir/cirros-qemu-pvhvm.cfg
+    check_guest_alive
+}
index 7b1ad8e668c8d747ef819136b8752742cf821f37..51dbe17bcae86800af0af072c2f95771dfd845c8 100644 (file)
@@ -6,3 +6,4 @@ cirros-pygrub-pv
 cirros-pvgrub2-pv
 cirros-qemu-hvm
 cirros-minios-stubdom-hvm
+cirros-qemu-pvhvm