qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: "Marc-André Lureau" <marcandre.lureau@redhat.com>
Cc: qemu-devel@nongnu.org, qemu-trivial@nongnu.org
Subject: Re: [PATCH] tests/qtest: Don't run the dbus-display-test without CONFIG_VGA_PCI
Date: Tue, 20 Feb 2024 17:57:52 +0100	[thread overview]
Message-ID: <0ab9b9ce-9327-4112-bb7e-ad191353ccea@redhat.com> (raw)
In-Reply-To: <CAMxuvazmk_cnxUOAsAi1D7=VsT7OkkyNPL6adqqCkwt2LWVscg@mail.gmail.com>

On 19/02/2024 15.00, Marc-André Lureau wrote:
> Hi
> 
> On Mon, Feb 19, 2024 at 4:39 PM Thomas Huth <thuth@redhat.com> wrote:
>>
>> When compiling with "configure --without-default-devices", the
>> dbus-display-test fails since it implicitly assumes that the
>> machine comes with the standard VGA card. Thus add a check to
>> meson.build to disable the test if the VGA card is not available.
>>
>> Signed-off-by: Thomas Huth <thuth@redhat.com>
> 
> Not necessarily VGA, but a graphic or VC console.

Well, the test currently does not use any -device or -vga options, so it 
assumes that the default graphic card is around - which happens to be the 
VGA_PCI card for x86.

> I am not sure how to
> guess from the binary or compilation settings. Maybe it would be
> simpler to check at run-time if /org/qemu/Display1/Console_0 exists. I
> can work on a patch.

That sounds like a more robust solution indeed, so a patch would be very 
welcome!

  Thanks,
   Thomas


>> ---
>>   tests/qtest/meson.build | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
>> index 2b89e8634b..c8e6d7df40 100644
>> --- a/tests/qtest/meson.build
>> +++ b/tests/qtest/meson.build
>> @@ -108,7 +108,7 @@ qtests_i386 = \
>>      'numa-test'
>>     ]
>>
>> -if dbus_display
>> +if dbus_display and config_all_devices.has_key('CONFIG_VGA_PCI')
>>     qtests_i386 += ['dbus-display-test']
>>   endif
>>
>> --
>> 2.43.2
>>
> 



      reply	other threads:[~2024-02-20 16:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-19 12:39 [PATCH] tests/qtest: Don't run the dbus-display-test without CONFIG_VGA_PCI Thomas Huth
2024-02-19 14:00 ` Marc-André Lureau
2024-02-20 16:57   ` Thomas Huth [this message]

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=0ab9b9ce-9327-4112-bb7e-ad191353ccea@redhat.com \
    --to=thuth@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@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).