[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 09/12] tests/qtest: Do not include hexloader-test if loader devic
From: |
Fabiano Rosas |
Subject: |
[PATCH 09/12] tests/qtest: Do not include hexloader-test if loader device is not present |
Date: |
Mon, 6 Feb 2023 12:04:13 -0300 |
Signed-off-by: Fabiano Rosas <farosas@suse.de>
---
tests/qtest/hexloader-test.c | 5 +++++
tests/qtest/meson.build | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/tests/qtest/hexloader-test.c b/tests/qtest/hexloader-test.c
index 3023548041..3ab464f438 100644
--- a/tests/qtest/hexloader-test.c
+++ b/tests/qtest/hexloader-test.c
@@ -22,6 +22,11 @@ static void hex_loader_test(void)
unsigned int i;
const unsigned int base_addr = 0x00010000;
+ if (!qtest_has_device("loader")) {
+ g_test_skip("Device 'loader' not available");
+ return;
+ }
+
QTestState *s = qtest_initf(
"-M vexpress-a9 -device loader,file=tests/data/hex-loader/test.hex");
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index 431b623df9..a930706a43 100644
--- a/tests/qtest/meson.build
+++ b/tests/qtest/meson.build
@@ -197,11 +197,11 @@ qtests_arm = \
(config_all_devices.has_key('CONFIG_PFLASH_CFI02') ? ['pflash-cfi02-test'] :
[]) + \
(config_all_devices.has_key('CONFIG_ASPEED_SOC') ? qtests_aspeed : []) + \
(config_all_devices.has_key('CONFIG_NPCM7XX') ? qtests_npcm7xx : []) + \
+ (config_all_devices.has_key('CONFIG_GENERIC_LOADER') ? ['hexloader-test'] :
[]) + \
['arm-cpu-features',
'microbit-test',
'test-arm-mptimer',
- 'boot-serial-test',
- 'hexloader-test']
+ 'boot-serial-test']
# TODO: once aarch64 TCG is fixed on ARM 32 bit host, make bios-tables-test
unconditional
qtests_aarch64 = \
--
2.35.3
- Re: [PATCH 05/12] tests/qtest: hd-geo-test: Check for missing devices, (continued)
- [PATCH 07/12] tests/qtest: drive_del-test: Skip tests that require missing devices, Fabiano Rosas, 2023/02/06
- [PATCH 08/12] tests/qtest: Check for devices in bios-tables-test, Fabiano Rosas, 2023/02/06
- [PATCH 09/12] tests/qtest: Do not include hexloader-test if loader device is not present,
Fabiano Rosas <=
- [PATCH 10/12] tests/qemu-iotests: Require virtio-scsi-pci, Fabiano Rosas, 2023/02/06
- [PATCH 11/12] tests/qtest: bios-tables-test: Skip if missing configs, Fabiano Rosas, 2023/02/06
[PATCH 12/12] [NOT FOR MERGE] tests/qtest: Introduce qtest_validate_args, Fabiano Rosas, 2023/02/06