diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2023-04-24 10:22:44 +0100 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2023-04-27 14:58:23 +0100 |
commit | d044b7c33a564e50e0a6b156d71b3262f1faf0a7 (patch) | |
tree | 174d3dd063c7c9bef1afe10de244b69ed2892d2d /tests/tcg/Makefile.target | |
parent | 6ee362423609738f64d6efcecf53265dc78ff5f1 (diff) | |
download | qemu-d044b7c33a564e50e0a6b156d71b3262f1faf0a7.zip qemu-d044b7c33a564e50e0a6b156d71b3262f1faf0a7.tar.gz qemu-d044b7c33a564e50e0a6b156d71b3262f1faf0a7.tar.bz2 |
tests/tcg: limit the scope of the plugin tests
Running every plugin with every test is getting excessive as well as
not really improving coverage that much. Restrict the plugin tests to
just the MULTIARCH_TESTS which are shared between most architecture
for both system and user-mode. For those that aren't we need to squash
MULTIARCH_TESTS so we don't add them when they are not part of the
TESTS global.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Acked-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230424092249.58552-14-alex.bennee@linaro.org>
Diffstat (limited to 'tests/tcg/Makefile.target')
-rw-r--r-- | tests/tcg/Makefile.target | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index 8318caf..72876cc 100644 --- a/tests/tcg/Makefile.target +++ b/tests/tcg/Makefile.target @@ -152,13 +152,17 @@ PLUGINS=$(patsubst %.c, lib%.so, $(notdir $(wildcard $(PLUGIN_SRC)/*.c))) # We need to ensure expand the run-plugin-TEST-with-PLUGIN # pre-requistes manually here as we can't use stems to handle it. We -# also add some special helpers the run-plugin- rules can use bellow. +# only expand MULTIARCH_TESTS which are common on most of our targets +# to avoid an exponential explosion as new tests are added. We also +# add some special helpers the run-plugin- rules can use bellow. +ifneq ($(MULTIARCH_TESTS),) $(foreach p,$(PLUGINS), \ - $(foreach t,$(TESTS),\ + $(foreach t,$(MULTIARCH_TESTS),\ $(eval run-plugin-$(t)-with-$(p): $t $p) \ $(eval RUN_TESTS+=run-plugin-$(t)-with-$(p)))) -endif +endif # MULTIARCH_TESTS +endif # CONFIG_PLUGIN strip-plugin = $(wordlist 1, 1, $(subst -with-, ,$1)) extract-plugin = $(wordlist 2, 2, $(subst -with-, ,$1)) |