[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 30/51] tests: Skip iotests and qtest when '--without-default-devi
From: |
Bin Meng |
Subject: |
[PATCH 30/51] tests: Skip iotests and qtest when '--without-default-devices' |
Date: |
Wed, 24 Aug 2022 17:40:08 +0800 |
From: Bin Meng <bin.meng@windriver.com>
When QEMU is configured with '--without-default-devices', we should
not build and run iotests and qtest because devices used by these
test cases are not built in.
Signed-off-by: Bin Meng <bin.meng@windriver.com>
---
tests/qemu-iotests/meson.build | 5 +++++
tests/qtest/meson.build | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/tests/qemu-iotests/meson.build b/tests/qemu-iotests/meson.build
index 323a4acb6a..38d9a874d2 100644
--- a/tests/qemu-iotests/meson.build
+++ b/tests/qemu-iotests/meson.build
@@ -2,6 +2,11 @@ if not have_tools or targetos == 'windows' or
get_option('gprof')
subdir_done()
endif
+# Skip iotests if configured without a default selection of devices
+if not get_option('default_devices')
+ subdir_done()
+endif
+
foreach cflag: config_host['QEMU_CFLAGS'].split()
if cflag.startswith('-fsanitize') and \
not cflag.contains('safe-stack') and not cflag.contains('cfi-icall')
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index c97da5a062..0291b3966c 100644
--- a/tests/qtest/meson.build
+++ b/tests/qtest/meson.build
@@ -4,6 +4,11 @@ if not config_host.has_key('CONFIG_POSIX')
subdir_done()
endif
+# Skip QTests if configured without a default selection of devices
+if not get_option('default_devices')
+ subdir_done()
+endif
+
slow_qtests = {
'ahci-test' : 60,
'bios-tables-test' : 120,
--
2.34.1
- [PATCH 27/51] tests/qtest: Use send/recv for socket communication, (continued)
[PATCH 28/51] tests/qtest: libqtest: Exclude the *_fds APIs for win32, Bin Meng, 2022/08/24
[PATCH 29/51] tests/qtest: libqtest: Install signal handler via signal(), Bin Meng, 2022/08/24
[PATCH 30/51] tests: Skip iotests and qtest when '--without-default-devices',
Bin Meng <=
[PATCH 31/51] tests/qtest: Support libqtest to build and run on Windows, Bin Meng, 2022/08/24
[PATCH 32/51] tests/qtest: Fix ERROR_SHARING_VIOLATION for win32, Bin Meng, 2022/08/24
[PATCH 34/51] tests/qtest: bios-tables-test: Adapt the case for win32, Bin Meng, 2022/08/24
[PATCH 39/51] tests/qtest: virtio-net-failover: Disable migration tests for win32, Bin Meng, 2022/08/24
[PATCH 43/51] tests/qtest: npcm7xx_emc-test: Skip running test_{tx, rx} on win32, Bin Meng, 2022/08/24