* [Qemu-devel] [PATCH 1/1] qtest:Fix the bug about disabling vnc causes "make check" hang
@ 2013-12-30 8:46 Kewei Yu
2013-12-31 0:19 ` Andreas Färber
0 siblings, 1 reply; 6+ messages in thread
From: Kewei Yu @ 2013-12-30 8:46 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-trivial, mst
When we disabling vnc from "./configure", the qemu can't use the vnc option.
So qtest can't use the "vnc -none ", otherwise "make check" will hang.
Signed-off-by: Kewei Yu <keweihk@gmail.com>
---
tests/fdc-test.c | 4 ++++
tests/ide-test.c | 11 ++++++++---
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/tests/fdc-test.c b/tests/fdc-test.c
index 38b5b17..80dbdfb 100644
--- a/tests/fdc-test.c
+++ b/tests/fdc-test.c
@@ -538,7 +538,11 @@ int main(int argc, char **argv)
/* Run the tests */
g_test_init(&argc, &argv, NULL);
+#ifdef CONFIG_VNC
cmdline = g_strdup_printf("-vnc none ");
+#else
+ cmdline = NULL;
+#endif
qtest_start(cmdline);
qtest_irq_intercept_in(global_qtest, "ioapic");
diff --git a/tests/ide-test.c b/tests/ide-test.c
index d5cec5a..da9e8dd 100644
--- a/tests/ide-test.c
+++ b/tests/ide-test.c
@@ -377,10 +377,15 @@ static void test_bmdma_no_busmaster(void)
assert_bit_clear(inb(IDE_BASE + reg_status), DF | ERR);
}
+#ifdef CONFIG_VNC
+#define QTEST_VNC_PARAM "-vnc none ";
+#else
+#define QTEST_VNC_PARAM
+#endif
static void test_bmdma_setup(void)
{
ide_test_start(
- "-vnc none "
+ QTEST_VNC_PARAM
"-drive file=%s,if=ide,serial=%s,cache=writeback "
"-global ide-hd.ver=%s",
tmp_path, "testdisk", "version");
@@ -410,7 +415,7 @@ static void test_identify(void)
int ret;
ide_test_start(
- "-vnc none "
+ QTEST_VNC_PARAM
"-drive file=%s,if=ide,serial=%s,cache=writeback "
"-global ide-hd.ver=%s",
tmp_path, "testdisk", "version");
@@ -455,7 +460,7 @@ static void test_flush(void)
uint8_t data;
ide_test_start(
- "-vnc none "
+ QTEST_VNC_PARAM
"-drive file=blkdebug::%s,if=ide,cache=writeback",
tmp_path);
--
1.7.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH 1/1] qtest:Fix the bug about disabling vnc causes "make check" hang
2013-12-30 8:46 [Qemu-devel] [PATCH 1/1] qtest:Fix the bug about disabling vnc causes "make check" hang Kewei Yu
@ 2013-12-31 0:19 ` Andreas Färber
2014-01-02 4:08 ` Stefan Hajnoczi
0 siblings, 1 reply; 6+ messages in thread
From: Andreas Färber @ 2013-12-31 0:19 UTC (permalink / raw)
To: Kewei Yu, qemu-devel; +Cc: qemu-trivial, Stefan Hajnoczi, mst
Hi,
Am 30.12.2013 09:46, schrieb Kewei Yu:
> When we disabling vnc from "./configure", the qemu can't use the vnc option.
> So qtest can't use the "vnc -none ", otherwise "make check" will hang.
>
> Signed-off-by: Kewei Yu <keweihk@gmail.com>
> ---
> tests/fdc-test.c | 4 ++++
> tests/ide-test.c | 11 ++++++++---
> 2 files changed, 12 insertions(+), 3 deletions(-)
>
> diff --git a/tests/fdc-test.c b/tests/fdc-test.c
> index 38b5b17..80dbdfb 100644
> --- a/tests/fdc-test.c
> +++ b/tests/fdc-test.c
> @@ -538,7 +538,11 @@ int main(int argc, char **argv)
> /* Run the tests */
> g_test_init(&argc, &argv, NULL);
>
> +#ifdef CONFIG_VNC
> cmdline = g_strdup_printf("-vnc none ");
> +#else
> + cmdline = NULL;
> +#endif
>
> qtest_start(cmdline);
> qtest_irq_intercept_in(global_qtest, "ioapic");
I have already made -display none a default used by all qtests.
http://git.qemu.org/?p=qemu.git;a=commit;h=2ad645d2854746b55ddfd1d8e951f689cca5d78f
Is there a reason not to do the same for -vnc none?
That would consolidate the #ifdef'ery to one central point.
Regards,
Andreas
> diff --git a/tests/ide-test.c b/tests/ide-test.c
> index d5cec5a..da9e8dd 100644
> --- a/tests/ide-test.c
> +++ b/tests/ide-test.c
> @@ -377,10 +377,15 @@ static void test_bmdma_no_busmaster(void)
> assert_bit_clear(inb(IDE_BASE + reg_status), DF | ERR);
> }
>
> +#ifdef CONFIG_VNC
> +#define QTEST_VNC_PARAM "-vnc none ";
> +#else
> +#define QTEST_VNC_PARAM
> +#endif
> static void test_bmdma_setup(void)
> {
> ide_test_start(
> - "-vnc none "
> + QTEST_VNC_PARAM
> "-drive file=%s,if=ide,serial=%s,cache=writeback "
> "-global ide-hd.ver=%s",
> tmp_path, "testdisk", "version");
> @@ -410,7 +415,7 @@ static void test_identify(void)
> int ret;
>
> ide_test_start(
> - "-vnc none "
> + QTEST_VNC_PARAM
> "-drive file=%s,if=ide,serial=%s,cache=writeback "
> "-global ide-hd.ver=%s",
> tmp_path, "testdisk", "version");
> @@ -455,7 +460,7 @@ static void test_flush(void)
> uint8_t data;
>
> ide_test_start(
> - "-vnc none "
> + QTEST_VNC_PARAM
> "-drive file=blkdebug::%s,if=ide,cache=writeback",
> tmp_path);
>
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH 1/1] qtest:Fix the bug about disabling vnc causes "make check" hang
2013-12-31 0:19 ` Andreas Färber
@ 2014-01-02 4:08 ` Stefan Hajnoczi
2014-01-07 10:35 ` Markus Armbruster
0 siblings, 1 reply; 6+ messages in thread
From: Stefan Hajnoczi @ 2014-01-02 4:08 UTC (permalink / raw)
To: Andreas Färber; +Cc: qemu-trivial, Kewei Yu, qemu-devel, mst
On Tue, Dec 31, 2013 at 01:19:02AM +0100, Andreas Färber wrote:
> Am 30.12.2013 09:46, schrieb Kewei Yu:
> > When we disabling vnc from "./configure", the qemu can't use the vnc option.
> > So qtest can't use the "vnc -none ", otherwise "make check" will hang.
> >
> > Signed-off-by: Kewei Yu <keweihk@gmail.com>
> > ---
> > tests/fdc-test.c | 4 ++++
> > tests/ide-test.c | 11 ++++++++---
> > 2 files changed, 12 insertions(+), 3 deletions(-)
> >
> > diff --git a/tests/fdc-test.c b/tests/fdc-test.c
> > index 38b5b17..80dbdfb 100644
> > --- a/tests/fdc-test.c
> > +++ b/tests/fdc-test.c
> > @@ -538,7 +538,11 @@ int main(int argc, char **argv)
> > /* Run the tests */
> > g_test_init(&argc, &argv, NULL);
> >
> > +#ifdef CONFIG_VNC
> > cmdline = g_strdup_printf("-vnc none ");
> > +#else
> > + cmdline = NULL;
> > +#endif
> >
> > qtest_start(cmdline);
> > qtest_irq_intercept_in(global_qtest, "ioapic");
>
> I have already made -display none a default used by all qtests.
> http://git.qemu.org/?p=qemu.git;a=commit;h=2ad645d2854746b55ddfd1d8e951f689cca5d78f
>
> Is there a reason not to do the same for -vnc none?
> That would consolidate the #ifdef'ery to one central point.
Agreed, let's set -vnc none by default in one place (if enabled by
./configure).
I wonder if we should use -nodefaults too? That may require adding some
new options to explicitly set up devices used by existing tests.
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH 1/1] qtest:Fix the bug about disabling vnc causes "make check" hang
2014-01-02 4:08 ` Stefan Hajnoczi
@ 2014-01-07 10:35 ` Markus Armbruster
2014-01-07 11:36 ` Andreas Färber
0 siblings, 1 reply; 6+ messages in thread
From: Markus Armbruster @ 2014-01-07 10:35 UTC (permalink / raw)
To: Stefan Hajnoczi
Cc: qemu-trivial, mst, Kewei Yu, Andreas Färber, qemu-devel
Stefan Hajnoczi <stefanha@redhat.com> writes:
> On Tue, Dec 31, 2013 at 01:19:02AM +0100, Andreas Färber wrote:
>> Am 30.12.2013 09:46, schrieb Kewei Yu:
>> > When we disabling vnc from "./configure", the qemu can't use the vnc option.
>> > So qtest can't use the "vnc -none ", otherwise "make check" will hang.
>> >
>> > Signed-off-by: Kewei Yu <keweihk@gmail.com>
>> > ---
>> > tests/fdc-test.c | 4 ++++
>> > tests/ide-test.c | 11 ++++++++---
>> > 2 files changed, 12 insertions(+), 3 deletions(-)
>> >
>> > diff --git a/tests/fdc-test.c b/tests/fdc-test.c
>> > index 38b5b17..80dbdfb 100644
>> > --- a/tests/fdc-test.c
>> > +++ b/tests/fdc-test.c
>> > @@ -538,7 +538,11 @@ int main(int argc, char **argv)
>> > /* Run the tests */
>> > g_test_init(&argc, &argv, NULL);
>> >
>> > +#ifdef CONFIG_VNC
>> > cmdline = g_strdup_printf("-vnc none ");
>> > +#else
>> > + cmdline = NULL;
>> > +#endif
>> >
>> > qtest_start(cmdline);
>> > qtest_irq_intercept_in(global_qtest, "ioapic");
>>
>> I have already made -display none a default used by all qtests.
>> http://git.qemu.org/?p=qemu.git;a=commit;h=2ad645d2854746b55ddfd1d8e951f689cca5d78f
>>
>> Is there a reason not to do the same for -vnc none?
>> That would consolidate the #ifdef'ery to one central point.
>
> Agreed, let's set -vnc none by default in one place (if enabled by
> ./configure).
>
> I wonder if we should use -nodefaults too? That may require adding some
> new options to explicitly set up devices used by existing tests.
Try and see what explodes?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH 1/1] qtest:Fix the bug about disabling vnc causes "make check" hang
2014-01-07 10:35 ` Markus Armbruster
@ 2014-01-07 11:36 ` Andreas Färber
2014-01-09 13:33 ` Markus Armbruster
0 siblings, 1 reply; 6+ messages in thread
From: Andreas Färber @ 2014-01-07 11:36 UTC (permalink / raw)
To: Markus Armbruster, Stefan Hajnoczi
Cc: qemu-trivial, Kewei Yu, qemu-devel, mst
Am 07.01.2014 11:35, schrieb Markus Armbruster:
> Stefan Hajnoczi <stefanha@redhat.com> writes:
>> On Tue, Dec 31, 2013 at 01:19:02AM +0100, Andreas Färber wrote:
>>> Am 30.12.2013 09:46, schrieb Kewei Yu:
>>>> diff --git a/tests/fdc-test.c b/tests/fdc-test.c
>>>> index 38b5b17..80dbdfb 100644
>>>> --- a/tests/fdc-test.c
>>>> +++ b/tests/fdc-test.c
>>>> @@ -538,7 +538,11 @@ int main(int argc, char **argv)
>>>> /* Run the tests */
>>>> g_test_init(&argc, &argv, NULL);
>>>>
>>>> +#ifdef CONFIG_VNC
>>>> cmdline = g_strdup_printf("-vnc none ");
>>>> +#else
>>>> + cmdline = NULL;
>>>> +#endif
>>>>
>>>> qtest_start(cmdline);
>>>> qtest_irq_intercept_in(global_qtest, "ioapic");
>>>
>>> I have already made -display none a default used by all qtests.
>>> http://git.qemu.org/?p=qemu.git;a=commit;h=2ad645d2854746b55ddfd1d8e951f689cca5d78f
>>>
>>> Is there a reason not to do the same for -vnc none?
>>> That would consolidate the #ifdef'ery to one central point.
>>
>> Agreed, let's set -vnc none by default in one place (if enabled by
>> ./configure).
>>
>> I wonder if we should use -nodefaults too? That may require adding some
>> new options to explicitly set up devices used by existing tests.
>
> Try and see what explodes?
I fear that will render my qom-test useless, which is supposed to test
our defaults. If -nodefaults drops serial ports, floppy drives, etc.
that will reduce its usefulness. Unless of course we find a way to
override -nodefaults with some generic -defaults options. :)
I haven't noticed anyone actually adding qtests along with new machines,
adding them to qom-test already required some poking of mine.
End of last year I was preparing some qtests for optional PCI devices,
but even such stubs are hard to share across multiple shoulders due to
resulting Makefile conflicts...
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH 1/1] qtest:Fix the bug about disabling vnc causes "make check" hang
2014-01-07 11:36 ` Andreas Färber
@ 2014-01-09 13:33 ` Markus Armbruster
0 siblings, 0 replies; 6+ messages in thread
From: Markus Armbruster @ 2014-01-09 13:33 UTC (permalink / raw)
To: Andreas Färber
Cc: qemu-trivial, Kewei Yu, qemu-devel, Stefan Hajnoczi, mst
Andreas Färber <afaerber@suse.de> writes:
> Am 07.01.2014 11:35, schrieb Markus Armbruster:
>> Stefan Hajnoczi <stefanha@redhat.com> writes:
>>> On Tue, Dec 31, 2013 at 01:19:02AM +0100, Andreas Färber wrote:
>>>> Am 30.12.2013 09:46, schrieb Kewei Yu:
>>>>> diff --git a/tests/fdc-test.c b/tests/fdc-test.c
>>>>> index 38b5b17..80dbdfb 100644
>>>>> --- a/tests/fdc-test.c
>>>>> +++ b/tests/fdc-test.c
>>>>> @@ -538,7 +538,11 @@ int main(int argc, char **argv)
>>>>> /* Run the tests */
>>>>> g_test_init(&argc, &argv, NULL);
>>>>>
>>>>> +#ifdef CONFIG_VNC
>>>>> cmdline = g_strdup_printf("-vnc none ");
>>>>> +#else
>>>>> + cmdline = NULL;
>>>>> +#endif
>>>>>
>>>>> qtest_start(cmdline);
>>>>> qtest_irq_intercept_in(global_qtest, "ioapic");
>>>>
>>>> I have already made -display none a default used by all qtests.
>>>> http://git.qemu.org/?p=qemu.git;a=commit;h=2ad645d2854746b55ddfd1d8e951f689cca5d78f
>>>>
>>>> Is there a reason not to do the same for -vnc none?
>>>> That would consolidate the #ifdef'ery to one central point.
>>>
>>> Agreed, let's set -vnc none by default in one place (if enabled by
>>> ./configure).
>>>
>>> I wonder if we should use -nodefaults too? That may require adding some
>>> new options to explicitly set up devices used by existing tests.
>>
>> Try and see what explodes?
>
> I fear that will render my qom-test useless, which is supposed to test
> our defaults. If -nodefaults drops serial ports, floppy drives, etc.
> that will reduce its usefulness. Unless of course we find a way to
> override -nodefaults with some generic -defaults options. :)
> I haven't noticed anyone actually adding qtests along with new machines,
> adding them to qom-test already required some poking of mine.
>
> End of last year I was preparing some qtests for optional PCI devices,
> but even such stubs are hard to share across multiple shoulders due to
> resulting Makefile conflicts...
>
> Andreas
(Loosely) related: should we set QEMU_AUDIO_DRV=none to stop the "audio:
Could not init `oss' audio driver" complaints?
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-01-09 13:33 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-30 8:46 [Qemu-devel] [PATCH 1/1] qtest:Fix the bug about disabling vnc causes "make check" hang Kewei Yu
2013-12-31 0:19 ` Andreas Färber
2014-01-02 4:08 ` Stefan Hajnoczi
2014-01-07 10:35 ` Markus Armbruster
2014-01-07 11:36 ` Andreas Färber
2014-01-09 13:33 ` Markus Armbruster
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).