From: Stefano Stabellini Date: Tue, 12 May 2015 13:31:09 +0000 (+0000) Subject: raisin: introduce a local migration test X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;p=people%2Fsstabellini%2Fraisin.git raisin: introduce a local migration test Signed-off-by: Stefano Stabellini --- diff --git a/tests/busybox-hvm-migrate b/tests/busybox-hvm-migrate new file mode 100755 index 0000000..14ffc0d --- /dev/null +++ b/tests/busybox-hvm-migrate @@ -0,0 +1,33 @@ +#!/usr/bin/env bash + +set -e + +source "$BASEDIR"/tests/busybox-hvm + +function busybox-hvm-migrate-cleanup() { + rm -f $TMPSCRIPT + busybox-hvm-cleanup +} + +function busybox-hvm-migrate-test() { + if [[ $RAISIN_ARCH != "x86_64" && $RAISIN_ARCH != "x86_32" ]] + then + echo $PREPEND busybox hvm test only valid on x86 + exit 0 + fi + + busybox-hvm-test + + TMPSCRIPT=`mktemp` + + cat >$TMPSCRIPT <