Skip to contentSkip to conversation

tests/qtest: Don't run the dbus-display-test without CONFIG_VGA_PCI

PATCH In review Thomas Huth 2 participants 3 messages Feb 19, 2024 – Feb 20, 2024 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/qtest: Don't run the dbus-display-test without CONFIG_VGA_PCI

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.

---
 tests/qtest/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qtest/meson.build +1 -1
index 2b89e8634b..c8e6d7df40 100644
@@ -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
 
Signature · 1 line
2.43.2
#1 lore raw

Hi

Quoted 7 lines · Thomas Huth

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.

Not necessarily VGA, but a graphic or VC console. 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.

Quoted 20 lines
---
 tests/qtest/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qtest/meson.build +1 -2
index 2b89e8634b..c8e6d7df40 100644
@@ -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

#2 lore raw
Quoted 4 lines · Marc-André Lureau

Hi

Quoted 1 line · Thomas Huth
Quoted 8 lines
Quoted 6 lines

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.

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.

Quoted 4 lines

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

Quoted 21 lines
Quoted 20 lines
---
  tests/qtest/meson.build | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
tests/qtest/meson.build +1 -2
index 2b89e8634b..c8e6d7df40 100644
@@ -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