[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH v5 6/9] tests/tcg: Do not build/run TCG tests if TCG is disab
From: |
Fabiano Rosas |
Subject: |
[RFC PATCH v5 6/9] tests/tcg: Do not build/run TCG tests if TCG is disabled |
Date: |
Fri, 20 Jan 2023 15:48:22 -0300 |
The tests under tests/tcg depend on the TCG accelerator. Do not build
them if --disable-tcg was given in the configure line.
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
configure | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index 9e407ce2e3..64960c6000 100755
--- a/configure
+++ b/configure
@@ -2483,7 +2483,11 @@ for target in $target_list; do
tcg_tests_targets="$tcg_tests_targets $target"
fi
done
-echo "TCG_TESTS_TARGETS=$tcg_tests_targets" >> config-host.mak)
+
+if test "$tcg" = "enabled"; then
+ echo "TCG_TESTS_TARGETS=$tcg_tests_targets" >> config-host.mak
+fi
+)
if test "$skip_meson" = no; then
cross="config-meson.cross.new"
--
2.35.3
- [RFC PATCH v5 0/9] target/arm: Allow CONFIG_TCG=n builds, Fabiano Rosas, 2023/01/20
- [RFC PATCH v5 2/9] target/arm: move cpu_tcg to tcg/cpu32.c, Fabiano Rosas, 2023/01/20
- [RFC PATCH v5 1/9] target/arm: Move 64-bit TCG CPUs into tcg/, Fabiano Rosas, 2023/01/20
- [RFC PATCH v5 6/9] tests/tcg: Do not build/run TCG tests if TCG is disabled,
Fabiano Rosas <=
- [RFC PATCH v5 3/9] target/arm: Use "max" as default cpu for the virt machine with KVM, Fabiano Rosas, 2023/01/20
- [RFC PATCH v5 4/9] tests/qtest: arm-cpu-features: Match tests to required accelerators, Fabiano Rosas, 2023/01/20
- [RFC PATCH v5 5/9] tests/qtest: Restrict tpm-tis-devices-{swtpm}-test to CONFIG_TCG, Fabiano Rosas, 2023/01/20
- [RFC PATCH v5 7/9] target/avocado: Pass parameters to migration test on aarch64, Fabiano Rosas, 2023/01/20