diff mbox

[09/10] Introduce cirros-minios-stubdom-pvhvm test

Message ID 1490470142-9032-10-git-send-email-geza.gemes@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Gémes Géza March 25, 2017, 7:29 p.m. UTC
This test is similar to cirros-minios-stubdom-hvm test, differing by
explicitly exposing the xen netfront and blockfront drivers

Signed-off-by: Géza Gémes <geza.gemes@gmail.com>
---
 tests/cirros-minios-stubdom-pvhvm | 28 ++++++++++++++++++++++++++++
 tests/series                      |  1 +
 2 files changed, 29 insertions(+)
 create mode 100644 tests/cirros-minios-stubdom-pvhvm

Comments

Stefano Stabellini March 27, 2017, 5:17 p.m. UTC | #1
On Sat, 25 Mar 2017, Géza Gémes wrote:
> This test is similar to cirros-minios-stubdom-hvm test, differing by
> explicitly exposing the xen netfront and blockfront drivers
> 
> Signed-off-by: Géza Gémes <geza.gemes@gmail.com>

Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>


> ---
>  tests/cirros-minios-stubdom-pvhvm | 28 ++++++++++++++++++++++++++++
>  tests/series                      |  1 +
>  2 files changed, 29 insertions(+)
>  create mode 100644 tests/cirros-minios-stubdom-pvhvm
> 
> diff --git a/tests/cirros-minios-stubdom-pvhvm b/tests/cirros-minios-stubdom-pvhvm
> new file mode 100644
> index 0000000..719b78d
> --- /dev/null
> +++ b/tests/cirros-minios-stubdom-pvhvm
> @@ -0,0 +1,28 @@
> +#!/usr/bin/env bash
> +
> +set -e
> +
> +function cirros-minios-stubdom-pvhvm-cleanup() {
> +    tear_down_cirros_test $testdir
> +}
> +
> +function cirros-minios-stubdom-pvhvm-test() {
> +    download_cirros_components
> +    testdir=`mktemp -d`
> +    cp $CIRROS_DOWNLOADS/$CIRROS_DISK_FILE $testdir
> +    cat >$testdir/cirros-minios-stubdom-pvhvm.cfg <<EOF
> +name = "raisin-test"
> +builder = "hvm"
> +device_model_stubdomain_override = 1
> +xen_platform_pci = 1
> +memory = 128
> +vcpus = 2
> +disk = [ '$testdir/$CIRROS_DISK_FILE,raw,xvda,rw' ]
> +vif = [ 'bridge=xenbr1' ]
> +serial="pty"
> +boot="c"
> +EOF
> +
> +    $SUDO xl create $testdir/cirros-minios-stubdom-pvhvm.cfg
> +    check_guest_alive
> +}
> diff --git a/tests/series b/tests/series
> index 51dbe17..ffa8e69 100644
> --- a/tests/series
> +++ b/tests/series
> @@ -7,3 +7,4 @@ cirros-pvgrub2-pv
>  cirros-qemu-hvm
>  cirros-minios-stubdom-hvm
>  cirros-qemu-pvhvm
> +cirros-minios-stubdom-pvhvm
> -- 
> 2.7.4
>
diff mbox

Patch

diff --git a/tests/cirros-minios-stubdom-pvhvm b/tests/cirros-minios-stubdom-pvhvm
new file mode 100644
index 0000000..719b78d
--- /dev/null
+++ b/tests/cirros-minios-stubdom-pvhvm
@@ -0,0 +1,28 @@ 
+#!/usr/bin/env bash
+
+set -e
+
+function cirros-minios-stubdom-pvhvm-cleanup() {
+    tear_down_cirros_test $testdir
+}
+
+function cirros-minios-stubdom-pvhvm-test() {
+    download_cirros_components
+    testdir=`mktemp -d`
+    cp $CIRROS_DOWNLOADS/$CIRROS_DISK_FILE $testdir
+    cat >$testdir/cirros-minios-stubdom-pvhvm.cfg <<EOF
+name = "raisin-test"
+builder = "hvm"
+device_model_stubdomain_override = 1
+xen_platform_pci = 1
+memory = 128
+vcpus = 2
+disk = [ '$testdir/$CIRROS_DISK_FILE,raw,xvda,rw' ]
+vif = [ 'bridge=xenbr1' ]
+serial="pty"
+boot="c"
+EOF
+
+    $SUDO xl create $testdir/cirros-minios-stubdom-pvhvm.cfg
+    check_guest_alive
+}
diff --git a/tests/series b/tests/series
index 51dbe17..ffa8e69 100644
--- a/tests/series
+++ b/tests/series
@@ -7,3 +7,4 @@  cirros-pvgrub2-pv
 cirros-qemu-hvm
 cirros-minios-stubdom-hvm
 cirros-qemu-pvhvm
+cirros-minios-stubdom-pvhvm