## All tests: busybox-pv busybox-hvm
## ENABLED_TESTS is the list of test run by raise test
ENABLED_TESTS="busybox-pv busybox-hvm cirros-separate-kernel-pv cirros-pygrub-pv cirros-pvgrub2-pv cirros-qemu-hvm cirros-qemu-pvhvm"
+
+# Kernel to use for tests. If not specified, raisin will try to use your
+# Dom0 kernel.
+#TEST_KERNEL=/boot/kernel
+
+# Initrd to use for tests. If not specified, raisin will try to use your
+# Dom0 initrd. If you don't need an initrd, please specify:
+#TEST_INITRD="none"
$SUDO brctl addbr xenbr1
$SUDO ifconfig xenbr1 169.254.0.1 up
fi
+
+ if [[ -z "$TEST_KERNEL" ]]
+ then
+ TEST_KERNEL="/boot/vmlinuz-`uname -r`"
+ fi
+ if [[ -e "$TEST_KERNEL" ]]
+ then
+ export TEST_KERNEL="$TEST_KERNEL"
+ else
+ echo "Could not find kernel to use for tests, please specify TEST_KERNEL"
+ exit 1
+ fi
+
+ if [[ -z "$TEST_INITRD" ]]
+ then
+ if [[ $DISTRO = "Debian" ]]
+ then
+ TEST_INITRD="/boot/initrd.img-`uname -r`"
+ elif [[ $DISTRO = "Fedora" ]]
+ then
+ TEST_INITRD="/boot/initramfs-`uname -r`".img
+ fi
+ fi
+ if [[ -e "$TEST_INITRD" || "$TEST_INITRD" = "none" ]]
+ then
+ export TEST_INITRD="$TEST_INITRD"
+ else
+ echo "Could not find initrd to use for tests, please specify TEST_INITRD"
+ exit 1
+ fi
}
function _build_package_deb() {
}
function get_host_kernel() {
- echo "/boot/vmlinuz-`uname -r`"
+ echo "$TEST_KERNEL"
}
function get_host_initrd() {
- if [[ $DISTRO = "Debian" ]]
- then
- echo "/boot/initrd.img-`uname -r`"
- elif [[ $DISTRO = "Fedora" ]]
- then
- echo "/boot/initramfs-`uname -r`".img
- else
- echo "$PREPEND I don't know how to find the initrd" >&2
- exit 1
- fi
+ echo "$TEST_INITRD"
}
function cirros_network_init() {