[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH v4 05/15] tests/qtest: Restrict tpm-tis-devices-{swtpm}-test
From: |
Fabiano Rosas |
Subject: |
[RFC PATCH v4 05/15] tests/qtest: Restrict tpm-tis-devices-{swtpm}-test to CONFIG_TCG |
Date: |
Thu, 19 Jan 2023 10:54:14 -0300 |
These tests set -accel tcg, so restrict them to when TCG is present.
Signed-off-by: Fabiano Rosas <farosas@suse.de>
---
tests/qtest/meson.build | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index 1af63f8bd2..9dd5c2de6e 100644
--- a/tests/qtest/meson.build
+++ b/tests/qtest/meson.build
@@ -204,8 +204,8 @@ qtests_arm = \
# TODO: once aarch64 TCG is fixed on ARM 32 bit host, make bios-tables-test
unconditional
qtests_aarch64 = \
(cpu != 'arm' and unpack_edk2_blobs ? ['bios-tables-test'] : []) +
\
- (config_all_devices.has_key('CONFIG_TPM_TIS_SYSBUS') ?
['tpm-tis-device-test'] : []) + \
- (config_all_devices.has_key('CONFIG_TPM_TIS_SYSBUS') ?
['tpm-tis-device-swtpm-test'] : []) + \
+ (config_all_devices.has_key('CONFIG_TCG') and
config_all_devices.has_key('CONFIG_TPM_TIS_SYSBUS') ? \
+ ['tpm-tis-device-test', 'tpm-tis-device-swtpm-test'] : []) +
\
(config_all_devices.has_key('CONFIG_XLNX_ZYNQMP_ARM') ? ['xlnx-can-test',
'fuzz-xlnx-dp-test'] : []) + \
(config_all_devices.has_key('CONFIG_RASPI') ? ['bcm2835-dma-test'] : []) + \
['arm-cpu-features',
@@ -295,11 +295,15 @@ qtests = {
'tpm-crb-test': [io, tpmemu_files],
'tpm-tis-swtpm-test': [io, tpmemu_files, 'tpm-tis-util.c'],
'tpm-tis-test': [io, tpmemu_files, 'tpm-tis-util.c'],
- 'tpm-tis-device-swtpm-test': [io, tpmemu_files, 'tpm-tis-util.c'],
- 'tpm-tis-device-test': [io, tpmemu_files, 'tpm-tis-util.c'],
'vmgenid-test': files('boot-sector.c', 'acpi-utils.c'),
}
+if config_all_devices.has_key('CONFIG_TCG')
+ qtests += { 'tpm-tis-device-swtpm-test': [io, tpmemu_files,
'tpm-tis-util.c'],
+ 'tpm-tis-device-test': [io, tpmemu_files, 'tpm-tis-util.c'], }
+endif
+
+
gvnc = dependency('gvnc-1.0', required: false)
if gvnc.found()
qtests += {'vnc-display-test': [gvnc]}
--
2.35.3
- [RFC PATCH v4 01/15] target/arm: Move 64-bit TCG CPUs into tcg/, (continued)
- [RFC PATCH v4 01/15] target/arm: Move 64-bit TCG CPUs into tcg/, Fabiano Rosas, 2023/01/19
- [RFC PATCH v4 03/15] target/arm: Remove default cpu for KVM-only builds, Fabiano Rosas, 2023/01/19
- [RFC PATCH v4 04/15] tests/qtest: arm-cpu-features: Match tests to required accelerators, Fabiano Rosas, 2023/01/19
- [RFC PATCH v4 05/15] tests/qtest: Restrict tpm-tis-devices-{swtpm}-test to CONFIG_TCG,
Fabiano Rosas <=
- [RFC PATCH v4 06/15] tests/qtest: Add qtest_get_machine_args, Fabiano Rosas, 2023/01/19
- [RFC PATCH v4 07/15] tests/qtest: Adjust qom-test to always set a -cpu option, Fabiano Rosas, 2023/01/19