new file mode 100644
@@ -0,0 +1,27 @@
+#!/usr/bin/env bash
+
+set -e
+
+function cirros-pvgrub2-pv-cleanup() {
+ tear_down_cirros_tests $tmpdir
+}
+
+function cirros-pvgrub2-pv-test() {
+ if [[ ! -d $tmpdir ]]
+ then
+ set_up_cirros_tests
+ fi
+ cd $tmpdir
+ cat >cirros-pvgrub2-pv.cfg <<EOF
+name = "raisin-test"
+memory = 128
+vcpus = 2
+kernel = "$PVGRUB"
+disk = [ '${tmpdir}/${CIRROS_DISK_FILE},raw,xvda,rw' ]
+extra = "$CIRROS_GRUB_CFG"
+vif = [ 'bridge=xenbr1' ]
+EOF
+
+ $SUDO xl create cirros-pvgrub2-pv.cfg
+ check_guest_alive
+}
@@ -3,3 +3,4 @@ busybox-hvm
busybox-hvm-migrate
cirros-separate-kernel-pv
cirros-pygrub-pv
+cirros-pvgrub2-pv
This test verifies booting the cirros image using pvgrub2 Signed-off-by: Géza Gémes <geza.gemes@gmail.com> --- tests/cirros-pvgrub2-pv | 27 +++++++++++++++++++++++++++ tests/series | 1 + 2 files changed, 28 insertions(+) create mode 100644 tests/cirros-pvgrub2-pv