]> xenbits.xensource.com Git - people/sstabellini/raisin.git/commitdiff
raisin: introduce a local migration test master
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 12 May 2015 13:31:09 +0000 (13:31 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 12 May 2015 13:31:09 +0000 (13:31 +0000)
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tests/busybox-hvm-migrate [new file with mode: 0755]
tests/series

diff --git a/tests/busybox-hvm-migrate b/tests/busybox-hvm-migrate
new file mode 100755 (executable)
index 0000000..14ffc0d
--- /dev/null
@@ -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 <<EOF
+#!/usr/bin/env bash
+
+shift
+\$*
+EOF
+    
+    chmod +x $TMPSCRIPT
+    xl migrate -s $TMPSCRIPT raisin-test localhost
+    check_guest_alive
+}
index 1f5f5c68451f5037483180b6514524b1c9df13c4..a2f4b34661f0fd85e9b95ca94b3aebd40b48094c 100644 (file)
@@ -1,2 +1,3 @@
 busybox-pv
 busybox-hvm
+busybox-hvm-migrate