From e717c8f1f31e6e6bbd4c8fb35f612df622df8385 Mon Sep 17 00:00:00 2001 From: Stefano Stabellini Date: Tue, 12 May 2015 13:31:09 +0000 Subject: [PATCH] raisin: introduce a local migration test Signed-off-by: Stefano Stabellini --- tests/busybox-hvm-migrate | 33 +++++++++++++++++++++++++++++++++ tests/series | 1 + 2 files changed, 34 insertions(+) create mode 100755 tests/busybox-hvm-migrate 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 <