From: Christian Schoenebeck <qemu_oss@crudebyte.com>
To: qemu-devel@nongnu.org
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Laurent Vivier" <lvivier@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Bin Meng" <bin.meng@windriver.com>,
"Thomas Huth" <thuth@redhat.com>
Subject: Re: [PATCH v6 08/11] tests/qtest: libqos: Do not build virtio-9p unconditionally
Date: Fri, 28 Oct 2022 15:34:45 +0200 [thread overview]
Message-ID: <4670841.EzQWk5tR0x@silver> (raw)
In-Reply-To: <552d9669-9db8-08e1-5931-644ec4c12c07@redhat.com>
On Friday, October 28, 2022 3:09:06 PM CEST Thomas Huth wrote:
> On 28/10/2022 14.59, Christian Schoenebeck wrote:
> > On Friday, October 28, 2022 6:57:33 AM CEST Bin Meng wrote:
> >> At present the virtio-9p related codes are built into libqos
> >> unconditionally. Change to build them conditionally by testing
> >> the 'virtfs' config option.
> >>
> >> Signed-off-by: Bin Meng <bin.meng@windriver.com>
> >>
> >> ---
> >>
> >> Changes in v6:
> >> - new patch: "test/qtest/libqos: meson.build: Do not build virtio-9p unconditionally"
> >>
> >> tests/qtest/libqos/meson.build | 6 ++++--
> >> 1 file changed, 4 insertions(+), 2 deletions(-)
> >>
> >> diff --git a/tests/qtest/libqos/meson.build b/tests/qtest/libqos/meson.build
> >> index 113c80b4e4..32f028872c 100644
> >> --- a/tests/qtest/libqos/meson.build
> >> +++ b/tests/qtest/libqos/meson.build
> >> @@ -33,8 +33,6 @@ libqos_srcs = files(
> >> 'sdhci.c',
> >> 'tpci200.c',
> >> 'virtio.c',
> >> - 'virtio-9p.c',
> >> - 'virtio-9p-client.c',
> >> 'virtio-balloon.c',
> >> 'virtio-blk.c',
> >> 'vhost-user-blk.c',
> >> @@ -62,6 +60,10 @@ libqos_srcs = files(
> >> 'x86_64_pc-machine.c',
> >> )
> >>
> >> +if have_virtfs
> >> + libqos_srcs += files('virtio-9p.c', 'virtio-9p-client.c')
> >> +endif
> >> +
> >> libqos = static_library('qos', libqos_srcs + genh,
> >> name_suffix: 'fa',
> >> build_by_default: false)
> >>
> >
> > I wondered why this change would no longer execute the 9p tests here.
> > Apparently because it changes the order of tests being executed, i.e. 9p tests
> > would then be scheduled after:
> >
> > # Start of vhost-user-blk-pci tests
> > # Start of vhost-user-blk-pci-tests tests
> > Environment variable QTEST_QEMU_STORAGE_DAEMON_BINARY required
> > [EXIT]
> >
> > and I never cared about QEMU storage binary. Can we make a hack like the
> > following to not change the order of the tests?
> >
> > diff --git a/tests/qtest/libqos/meson.build b/tests/qtest/libqos/meson.build
> > index 32f028872c..389bca9804 100644
> > --- a/tests/qtest/libqos/meson.build
> > +++ b/tests/qtest/libqos/meson.build
> > @@ -1,7 +1,13 @@
> > libqos_srcs = files(
> > '../libqtest.c',
> > '../libqmp.c',
> > +)
> >
> > +if have_virtfs
> > + libqos_srcs += files('virtio-9p.c', 'virtio-9p-client.c')
> > +endif
> > +
> > +libqos_srcs += files(
> > 'qgraph.c',
> > 'qos_external.c',
> > 'pci.c',
> > @@ -60,10 +66,6 @@ libqos_srcs = files(
> > 'x86_64_pc-machine.c',
> > )
> >
> > -if have_virtfs
> > - libqos_srcs += files('virtio-9p.c', 'virtio-9p-client.c')
> > -endif
> > -
> > libqos = static_library('qos', libqos_srcs + genh,
> > name_suffix: 'fa',
> > build_by_default: false)
> >
> > Too ugly?
>
> Looks a little bit ugly, indeed. What about marking the vhost-user-blk-pci
> test as skipped instead of exiting? (i.e. use g_test_skip() instead of
> exit()). Would that work for you?
In general, sure!
But it seems it needs a bit more tweaking, simply placing
g_test_skip(...);
return NULL;
there causes a hang.
Best regards,
Christian Schoenebeck
next prev parent reply other threads:[~2022-10-28 13:36 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-28 4:57 [PATCH v6 00/11] tests/qtest: Enable running qtest on Windows Bin Meng
2022-10-28 4:57 ` [PATCH v6 01/11] accel/qtest: Support qtest accelerator for Windows Bin Meng
2022-10-28 4:57 ` [PATCH v6 02/11] tests/qtest: Use send/recv for socket communication Bin Meng
2022-10-28 4:57 ` [PATCH v6 03/11] tests/qtest: Support libqtest to build and run on Windows Bin Meng
2022-10-28 4:57 ` [PATCH v6 04/11] tests/qtest: device-plug-test: Reverse the usage of double/single quotes Bin Meng
2022-10-28 7:49 ` Thomas Huth
2022-10-28 4:57 ` [PATCH v6 05/11] tests/qtest: Use EXIT_FAILURE instead of magic number Bin Meng
2022-10-28 8:02 ` Thomas Huth
2022-10-28 12:31 ` Juan Quintela
2022-10-28 4:57 ` [PATCH v6 06/11] tests/qtest: libqtest: Introduce qtest_wait_qemu() Bin Meng
2022-10-28 8:05 ` Thomas Huth
2022-10-28 4:57 ` [PATCH v6 07/11] tests/qtest: migration-test: Make sure QEMU process "to" exited after migration is canceled Bin Meng
2022-10-28 13:34 ` Juan Quintela
2022-10-28 4:57 ` [PATCH v6 08/11] tests/qtest: libqos: Do not build virtio-9p unconditionally Bin Meng
2022-10-28 7:56 ` Thomas Huth
2022-10-28 12:59 ` Christian Schoenebeck
2022-10-28 13:09 ` Thomas Huth
2022-10-28 13:34 ` Christian Schoenebeck [this message]
2022-10-28 4:57 ` [PATCH v6 09/11] tests/qtest: libqtest: Correct the timeout unit of blocking receive calls for win32 Bin Meng
2022-10-28 4:57 ` [PATCH v6 10/11] .gitlab-ci.d/windows.yml: Increase the timeout to 90 minutes Bin Meng
2022-10-28 4:57 ` [PATCH v6 11/11] tests/qtest: Enable qtest build on Windows Bin Meng
2022-11-23 14:13 ` Marc-André Lureau
2022-11-23 14:19 ` Thomas Huth
2022-11-24 11:17 ` Marc-André Lureau
2022-11-24 11:49 ` Thomas Huth
2022-11-24 12:00 ` Marc-André Lureau
2022-11-25 10:04 ` Bin Meng
2022-10-28 8:06 ` [PATCH v6 00/11] tests/qtest: Enable running qtest " Marc-André Lureau
2022-10-28 9:20 ` Bin Meng
2022-10-28 9:40 ` Marc-André Lureau
2022-10-28 9:43 ` Bin Meng
2022-10-28 11:49 ` Thomas Huth
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=4670841.EzQWk5tR0x@silver \
--to=qemu_oss@crudebyte.com \
--cc=bin.meng@windriver.com \
--cc=lvivier@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.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.