From: Fam Zheng <famz@redhat.com>
To: Alistair Francis <alistair.francis@wdc.com>
Cc: qemu-devel@nongnu.org, alex.bennee@linaro.org, f4bug@amsat.org,
alistair23@gmail.com
Subject: Re: [Qemu-devel] [PATCH v1 1/1] tests/docker: Add a Avocado Docker test
Date: Wed, 9 May 2018 13:57:29 +0800 [thread overview]
Message-ID: <20180509032533.GI22503@lemon.usersys.redhat.com> (raw)
In-Reply-To: <90990df8024b287004e771ebd2370cc390e49106.1525723355.git.alistair.francis@wdc.com>
On Mon, 05/07 13:09, Alistair Francis wrote:
> Avocado is not trivial to setup on non-Fedora systems. To simplfying
> future testing add a docker test image that runs Avocado tests.
>
> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
> ---
> tests/docker/dockerfiles/fedora.docker | 12 +++++++++--
> tests/docker/test-avocado | 28 ++++++++++++++++++++++++++
> 2 files changed, 38 insertions(+), 2 deletions(-)
> create mode 100755 tests/docker/test-avocado
>
> diff --git a/tests/docker/dockerfiles/fedora.docker b/tests/docker/dockerfiles/fedora.docker
> index b706f42405..5c23f6e459 100644
> --- a/tests/docker/dockerfiles/fedora.docker
> +++ b/tests/docker/dockerfiles/fedora.docker
> @@ -18,9 +18,17 @@ ENV PACKAGES \
> mingw64-pixman mingw64-glib2 mingw64-gmp mingw64-SDL mingw64-pkg-config \
> mingw64-gtk2 mingw64-gtk3 mingw64-gnutls mingw64-nettle mingw64-libtasn1 \
> mingw64-libjpeg-turbo mingw64-libpng mingw64-curl mingw64-libssh2 \
> - mingw64-bzip2
> + mingw64-bzip2 \
> + xz tcpdump nc \
> + python2-devel python3-devel python-avocado \
> + libvirt-devel qemu-kvm
> ENV QEMU_CONFIGURE_OPTS --python=/usr/bin/python3
> +ENV PIP_PACKAGES \
> + avocado-framework avocado-qemu \
I think python-avacado overlaps with pip avacado-framework. Why are both needed?
Fam
> + avocado-framework-plugin-vt avocado-framework-plugin-runner-vm \
> + avocado-framework-plugin-runner-remote avocado-framework-plugin-result-html
>
> RUN dnf install -y $PACKAGES
> +RUN pip install $PIP_PACKAGES
> RUN rpm -q $PACKAGES | sort > /packages.txt
> -ENV FEATURES mingw clang pyyaml asan
> +ENV FEATURES mingw clang pyyaml asan avocado
> diff --git a/tests/docker/test-avocado b/tests/docker/test-avocado
> new file mode 100755
> index 0000000000..8da7bc10a2
> --- /dev/null
> +++ b/tests/docker/test-avocado
> @@ -0,0 +1,28 @@
> +#!/bin/bash -e
> +#
> +# Avocado tests on Fedora, as these are a real pain on Debian systems
> +#
> +# Copyright (c) 2018 Western Digital.
> +#
> +# Authors:
> +# Alistair Francis <alistair.francis@wdc.com>
> +#
> +# This work is licensed under the terms of the GNU GPL, version 2
> +# or (at your option) any later version. See the COPYING file in
> +# the top-level directory.
> +#
> +# Run this test: NETWORK=1 make docker-test-avocado@fedora
> +
> +. common.rc
> +
> +requires avocado
> +
> +cd "$BUILD_DIR"
> +
> +DEF_TARGET_LIST="x86_64-softmmu"
> +TARGET_LIST=${TARGET_LIST:-$DEF_TARGET_LIST} \
> +build_qemu
> +install_qemu
> +export PATH="${PATH}:$(pwd)"
> +avocado vt-bootstrap --yes-to-all --vt-type qemu
> +avocado run boot --vt-qemu-bin ./x86_64-softmmu/qemu-system-x86_64
> --
> 2.17.0
>
>
next prev parent reply other threads:[~2018-05-09 5:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-07 20:09 [Qemu-devel] [PATCH v1 1/1] tests/docker: Add a Avocado Docker test Alistair Francis
2018-05-07 22:44 ` Philippe Mathieu-Daudé
2018-05-08 0:02 ` Philippe Mathieu-Daudé
2018-05-08 15:49 ` Philippe Mathieu-Daudé
2018-05-10 21:01 ` Alistair Francis
2018-05-10 21:00 ` Alistair Francis
2018-05-09 5:57 ` Fam Zheng [this message]
2018-05-10 21:01 ` Alistair Francis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180509032533.GI22503@lemon.usersys.redhat.com \
--to=famz@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=alistair.francis@wdc.com \
--cc=alistair23@gmail.com \
--cc=f4bug@amsat.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).