[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 08/10] Introduce cirros-qemu-pvhvm test



On Sat, 24 Mar 2017, Géza Gémes wrote:
> This test is similar to cirros-qemu-hvm test, differing by
> explicitly exposing the xen netfront and blockfront drivers
> 
> Signed-off-by: Géza Gémes <geza.gemes@xxxxxxxxx>

Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>


> ---
>  tests/cirros-qemu-pvhvm | 27 +++++++++++++++++++++++++++
>  tests/series            |  1 +
>  2 files changed, 28 insertions(+)
>  create mode 100644 tests/cirros-qemu-pvhvm
> 
> diff --git a/tests/cirros-qemu-pvhvm b/tests/cirros-qemu-pvhvm
> new file mode 100644
> index 0000000..6cf33e0
> --- /dev/null
> +++ b/tests/cirros-qemu-pvhvm
> @@ -0,0 +1,27 @@
> +#!/usr/bin/env bash
> +
> +set -e
> +
> +function cirros-qemu-pvhvm-cleanup() {
> +    tear_down_cirros_test $testdir
> +}
> +
> +function cirros-qemu-pvhvm-test() {
> +    download_cirros_components
> +    testdir=`mktemp -d`
> +    cp $CIRROS_DOWNLOADS/$CIRROS_DISK_FILE $testdir
> +    cat >$testdir/cirros-qemu-pvhvm.cfg <<EOF
> +name = "raisin-test"
> +builder = "hvm"
> +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-qemu-pvhvm.cfg
> +    check_guest_alive
> +}
> diff --git a/tests/series b/tests/series
> index 7b1ad8e..51dbe17 100644
> --- a/tests/series
> +++ b/tests/series
> @@ -6,3 +6,4 @@ cirros-pygrub-pv
>  cirros-pvgrub2-pv
>  cirros-qemu-hvm
>  cirros-minios-stubdom-hvm
> +cirros-qemu-pvhvm
> -- 
> 2.7.4
> 
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.