From: "Andreas Färber" <afaerber@suse.de>
To: qemu-devel@nongnu.org,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>, armbru@redhat.com
Subject: Re: [Qemu-devel] [PATCH 1/2] qom-test: Run for all available machines
Date: Wed, 05 Feb 2014 16:47:40 +0100 [thread overview]
Message-ID: <52F25D1C.4020602@suse.de> (raw)
In-Reply-To: <1389360699-9183-2-git-send-email-armbru@redhat.com>
Stefano,
Am 10.01.2014 14:31, schrieb armbru@redhat.com:
> From: Markus Armbruster <armbru@redhat.com>
>
> Get available machines via QMP instead of hardcoding a list that's
> perpetually out of date.
>
> A few machines don't work out of the box:
[...]
> * Xen machines can work only when running under the Xen hypervisor.
>
> Blacklist them.
>
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
> tests/qom-test.c | 283 +++++++++++++------------------------------------------
> 1 file changed, 66 insertions(+), 217 deletions(-)
>
> diff --git a/tests/qom-test.c b/tests/qom-test.c
> index 5e5af7a..3cbd480 100644
> --- a/tests/qom-test.c
> +++ b/tests/qom-test.c
> @@ -11,6 +11,42 @@
> #include <glib.h>
> #include <string.h>
> #include "qemu/osdep.h"
> +#include "qapi/qmp/types.h"
> +
[...]
> +
> +static const char *blacklist_x86[] = {
> + "xenfv", "xenpv", NULL
> +};
[snip]
I'm wondering if we could enable these machines conditional to
CONFIG_XEN, so I've tried commenting out the two since I have the Xen
libraries installed, but I get this:
$ make check-qtest V=1
[...]
/i386/qom/xenpv:
xen be core: can't connect to xenstored
xen_init_pv: xen backend core setup failed
Broken pipe
FAIL
[...]
/i386/qom/xenfv:
Broken pipe
FAIL
[...]
Have you checked whether you can make some code dependent on
!qtest_enabled() to make your machines testable by non-Xen users?
Regards,
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
next prev parent reply other threads:[~2014-02-05 15:47 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-10 13:31 [Qemu-devel] [PATCH 0/2] qom-test: Improve coverage armbru
2014-01-10 13:31 ` [Qemu-devel] [PATCH 1/2] qom-test: Run for all available machines armbru
2014-01-10 13:42 ` Markus Armbruster
2014-01-10 13:51 ` Alexander Graf
2014-01-10 14:17 ` Andreas Färber
2014-01-23 14:41 ` Andreas Färber
2014-01-23 15:40 ` Peter Maydell
2014-01-23 15:45 ` Andreas Färber
2014-01-23 16:00 ` Peter Maydell
2014-01-23 17:14 ` Andreas Färber
2014-01-23 14:54 ` Markus Armbruster
2014-01-31 12:33 ` Andreas Färber
2014-01-31 13:42 ` Markus Armbruster
2014-02-03 12:40 ` Markus Armbruster
2014-02-05 15:47 ` Andreas Färber [this message]
2014-02-05 17:51 ` Stefano Stabellini
2014-01-10 13:31 ` [Qemu-devel] [PATCH 2/2] qom-test: Test shutdown in addition to startup armbru
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=52F25D1C.4020602@suse.de \
--to=afaerber@suse.de \
--cc=armbru@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefano.stabellini@eu.citrix.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.