]> xenbits.xensource.com Git - raisin.git/commitdiff
Introduce cirros-separate-kernel-pv test
authorGéza Gémes <geza.gemes@gmail.com>
Sat, 25 Mar 2017 19:28:55 +0000 (20:28 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Mon, 27 Mar 2017 18:44:26 +0000 (11:44 -0700)
This test is the cirros equivalent of the busybox-pv test

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

diff --git a/tests/cirros-separate-kernel-pv b/tests/cirros-separate-kernel-pv
new file mode 100644 (file)
index 0000000..fab5856
--- /dev/null
@@ -0,0 +1,28 @@
+#!/usr/bin/env bash
+
+set -e
+
+function cirros-separate-kernel-pv-cleanup() {
+    tear_down_cirros_test $testdir
+}
+
+function cirros-separate-kernel-pv-test() {
+    download_cirros_components
+    testdir=`mktemp -d`
+    cp $CIRROS_DOWNLOADS/$CIRROS_KERNEL_FILE $testdir
+    cp $CIRROS_DOWNLOADS/$CIRROS_INITRD_FILE $testdir
+    cp $CIRROS_DOWNLOADS/$CIRROS_ROOTFS_FILE $testdir
+    cat >$testdir/cirros-separate-kernel-pv.cfg <<EOF
+name = "raisin-test"
+memory = 128
+vcpus = 2
+kernel = "$testdir/$CIRROS_KERNEL_FILE"
+ramdisk = "$testdir/$CIRROS_INITRD_FILE"
+disk = [ '$testdir/$CIRROS_ROOTFS_FILE,raw,xvda,rw' ]
+extra = "root=/dev/xvda"
+vif = [ 'bridge=xenbr1' ]
+EOF
+
+    $SUDO xl create $testdir/cirros-separate-kernel-pv.cfg
+    check_guest_alive
+}
index a2f4b34661f0fd85e9b95ca94b3aebd40b48094c..38ee35a1b74e67bf1062831d62f598a3928b0e73 100644 (file)
@@ -1,3 +1,4 @@
 busybox-pv
 busybox-hvm
 busybox-hvm-migrate
+cirros-separate-kernel-pv