]> git.proxmox.com Git - mirror_qemu.git/commitdiff
tests/tcg: limit the scope of the plugin tests
authorAlex Bennée <alex.bennee@linaro.org>
Mon, 24 Apr 2023 09:22:44 +0000 (10:22 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Thu, 27 Apr 2023 13:58:23 +0000 (14:58 +0100)
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>

14 files changed:
tests/tcg/Makefile.target
tests/tcg/aarch64/Makefile.softmmu-target
tests/tcg/aarch64/Makefile.target
tests/tcg/arm/Makefile.softmmu-target
tests/tcg/arm/Makefile.target
tests/tcg/cris/Makefile.target
tests/tcg/hppa/Makefile.target
tests/tcg/i386/Makefile.target
tests/tcg/ppc64/Makefile.target
tests/tcg/riscv64/Makefile.softmmu-target
tests/tcg/riscv64/Makefile.target
tests/tcg/s390x/Makefile.softmmu-target
tests/tcg/tricore/Makefile.softmmu-target
tests/tcg/xtensa/Makefile.softmmu-target

index 8318caf924719efe9e258cd26393eb6b1370bd4f..72876cc84e5a1c2a88d2b760d059af8ff91c9dfc 100644 (file)
@@ -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))
index df9747bae872249f4626dc02403e14be1bf2d592..b74a2534e384e4b833259911c439cfe640c198fb 100644 (file)
@@ -81,6 +81,4 @@ pauth-3:
        $(call skip-test, "BUILD of $@", "missing compiler support")
 run-pauth-3:
        $(call skip-test, "RUN of pauth-3", "not built")
-run-plugin-pauth-3-with-%:
-       $(call skip-test, "RUN of pauth-3 ($*)", "not built")
 endif
index 9e91a20b0d074fc2d666eb50b3dfe3214e25155b..03157954871fc1ef2816ff095c53ba0d08475278 100644 (file)
@@ -32,7 +32,6 @@ ifneq ($(CROSS_CC_HAS_ARMV8_3),)
 AARCH64_TESTS += pauth-1 pauth-2 pauth-4 pauth-5
 pauth-%: CFLAGS += -march=armv8.3-a
 run-pauth-%: QEMU_OPTS += -cpu max
-run-plugin-pauth-%: QEMU_OPTS += -cpu max
 endif
 
 # BTI Tests
index 7df88ddea8bc40b9a9209f9b42063b56e85b58da..8b546e2aa3c9324a0d0146a59afa4794696cd86e 100644 (file)
@@ -23,4 +23,6 @@ LDFLAGS+=-nostdlib -N -static
 test-armv6m-undef: EXTRA_CFLAGS+=-mcpu=cortex-m0 -mfloat-abi=soft
 
 run-test-armv6m-undef: QEMU_OPTS+=-semihosting -M microbit -kernel
-run-plugin-test-armv6m-undef-%: QEMU_OPTS+=-semihosting -M microbit -kernel
+
+# We don't currently support the multiarch system tests
+undefine MULTIARCH_TESTS
index b3b1504a1c40f1e910aa6d892e453b7bc47eca2e..0038cef02c6ccfb12e4f96f02184d046b6544944 100644 (file)
@@ -46,11 +46,6 @@ semihosting-arm: semihosting.c
 run-semihosting-arm: semihosting-arm
        $(call run-test,$<,$(QEMU) $< 2> $<.err)
 
-run-plugin-semihosting-arm-with-%:
-       $(call run-test, $@, $(QEMU) $(QEMU_OPTS) \
-               -plugin $(PLUGIN_LIB)/$(call extract-plugin,$@) \
-                $(call strip-plugin,$<) 2> $<.err)
-
 ARM_TESTS += semiconsole-arm
 
 semiconsole: CFLAGS += -mthumb
@@ -62,9 +57,6 @@ semiconsole-arm: semihosting.c
 run-semiconsole-arm: semiconsole-arm
        $(call skip-test, $<, "MANUAL ONLY")
 
-run-plugin-semiconsole-arm-with-%:
-       $(call skip-test, $<, "MANUAL ONLY")
-
 endif
 
 ARM_TESTS += commpage
index 372287bd0364ba1ba17c1045c96ce5e6dbb1fc32..43587d2769c01fbbd0175f1f4b6a6b661b118616 100644 (file)
@@ -57,3 +57,6 @@ SIMG:=cris-axis-linux-gnu-run
 # e.g.: make -f ../../tests/tcg/Makefile run-check_orm-on-sim
 run-%-on-sim:
        $(call run-test, $<, $(SIMG) $<)
+
+# We don't currently support the multiarch tests
+undefine MULTIARCH_TESTS
index b78e6b48499f97ed440111d1ae838fc5f0246848..cdd0d572a78183f38d2ccbcd1eb5311f9649e654 100644 (file)
@@ -10,8 +10,6 @@ EXTRA_RUNS+=run-test-mmap-4096 # run-test-mmap-16384 run-test-mmap-65536
 # it requires the full vdso with dwarf2 unwind info.
 run-signals: signals
        $(call skip-test, $<, "BROKEN awaiting vdso support")
-run-plugin-signals-with-%:
-       $(call skip-test, $<, "BROKEN awaiting vdso support")
 
 VPATH += $(SRC_PATH)/tests/tcg/hppa
 TESTS += stby
index bafd8c2180fc00e262b7791cb47314ada553ddba..821822ed0c143c159d4562cf00d8f523ef92d1d1 100644 (file)
@@ -18,19 +18,15 @@ X86_64_TESTS:=$(filter test-i386-adcox test-i386-bmi2 $(SKIP_I386_TESTS), $(ALL_
 
 test-i386-sse-exceptions: CFLAGS += -msse4.1 -mfpmath=sse
 run-test-i386-sse-exceptions: QEMU_OPTS += -cpu max
-run-plugin-test-i386-sse-exceptions-%: QEMU_OPTS += -cpu max
 
 test-i386-pcmpistri: CFLAGS += -msse4.2
 run-test-i386-pcmpistri: QEMU_OPTS += -cpu max
-run-plugin-test-i386-pcmpistri-%: QEMU_OPTS += -cpu max
 
 test-i386-bmi2: CFLAGS=-O2
 run-test-i386-bmi2: QEMU_OPTS += -cpu max
-run-plugin-test-i386-bmi2-%: QEMU_OPTS += -cpu max
 
 test-i386-adcox: CFLAGS=-O2
 run-test-i386-adcox: QEMU_OPTS += -cpu max
-run-plugin-test-i386-adcox-%: QEMU_OPTS += -cpu max
 
 #
 # hello-i386 is a barebones app
@@ -52,8 +48,6 @@ test-i386:
        $(call skip-test, "BUILD of $@", "missing -no-pie compiler support")
 run-test-i386:
        $(call skip-test, "RUN of test-i386", "not built")
-run-plugin-test-i386-with-%:
-       $(call skip-test, "RUN of test-i386 ($*)", "not built")
 endif
 
 ifeq ($(SPEED), slow)
@@ -87,7 +81,6 @@ sha512-sse: sha512.c
        $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS)
 
 run-sha512-sse: QEMU_OPTS+=-cpu max
-run-plugin-sha512-sse-with-%: QEMU_OPTS+=-cpu max
 
 TESTS+=sha512-sse
 
@@ -103,15 +96,12 @@ test-avx.h: test-avx.py x86.csv
 
 test-3dnow: CFLAGS += -masm=intel -O -I.
 run-test-3dnow: QEMU_OPTS += -cpu max
-run-plugin-test-3dnow: QEMU_OPTS += -cpu max
 test-3dnow: test-3dnow.h
 
 test-mmx: CFLAGS += -masm=intel -O -I.
 run-test-mmx: QEMU_OPTS += -cpu max
-run-plugin-test-mmx: QEMU_OPTS += -cpu max
 test-mmx: test-mmx.h
 
 test-avx: CFLAGS += -mavx -masm=intel -O -I.
 run-test-avx: QEMU_OPTS += -cpu max
-run-plugin-test-avx: QEMU_OPTS += -cpu max
 test-avx: test-avx.h
index f081f1c6835d92f96ff5a8cbda3a8b16b2c4b54d..6d47d3cae6021a6a8ae72ceb87033f370c2f5828 100644 (file)
@@ -24,14 +24,12 @@ PPC64_TESTS += byte_reverse sha512-vector
 endif
 byte_reverse: CFLAGS += -mcpu=power10
 run-byte_reverse: QEMU_OPTS+=-cpu POWER10
-run-plugin-byte_reverse-with-%: QEMU_OPTS+=-cpu POWER10
 
 sha512-vector: CFLAGS +=-mcpu=power10 -O3
 sha512-vector: sha512.c
        $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS)
 
 run-sha512-vector: QEMU_OPTS+=-cpu POWER10
-run-plugin-sha512-vector-with-%: QEMU_OPTS+=-cpu POWER10
 
 PPC64_TESTS += signal_save_restore_xer
 PPC64_TESTS += xxspltw
index e22cdb34c551fd72053b1adc3b1b255ad43a3840..d5b126e5f100b2417901a313eeab6e7b50d0f8c6 100644 (file)
@@ -19,3 +19,6 @@ QEMU_OPTS += -M virt -display none -semihosting -device loader,file=
 EXTRA_RUNS += run-issue1060
 run-issue1060: issue1060
        $(call run-test, $<, $(QEMU) $(QEMU_OPTS)$<)
+
+# We don't currently support the multiarch system tests
+undefine MULTIARCH_TESTS
index cc3ed65ffd8d0310ba3eaebab84d7090e3cf6e38..9973ba3b5f8c37a0150fba3359c8053fe2a20547 100644 (file)
@@ -9,4 +9,3 @@ TESTS += noexec
 TESTS += test-noc
 test-noc: LDFLAGS = -nostdlib -static
 run-test-noc: QEMU_OPTS += -cpu rv64,c=false
-run-plugin-test-noc-%: QEMU_OPTS += -cpu rv64,c=false
index 3e7f72abcdc39bc30b09cd6353869a5b2531a017..192315dd20a5036ec6a334d77200c599f1e69d93 100644 (file)
@@ -23,3 +23,6 @@ include $(S390X_SRC)/pgm-specification.mak
 $(PGM_SPECIFICATION_TESTS): pgm-specification-softmmu.o
 $(PGM_SPECIFICATION_TESTS): LDFLAGS+=pgm-specification-softmmu.o
 TESTS += $(PGM_SPECIFICATION_TESTS)
+
+# We don't currently support the multiarch system tests
+undefine MULTIARCH_TESTS
index b3cd56fffcddd10b0e56f9ad64d6645a35478d93..49e573bc3be103c7dd72bde194da1aa2b1d09b71 100644 (file)
@@ -29,3 +29,6 @@ QEMU_OPTS += -M tricore_testboard -cpu tc27x -nographic -kernel
 
 %.tst: %.o
        $(LD) $(LDFLAGS) $< -o $@
+
+# We don't currently support the multiarch system tests
+undefine MULTIARCH_TESTS
index ba6cd9fde3feec4b5f1f11ef3c33f6bfb2c22020..78bf72dfaa4a71fde7a0ccad1ab7139c329650b6 100644 (file)
@@ -41,3 +41,6 @@ $(XTENSA_USABLE_TESTS): linker.ld macros.inc $(CRT) Makefile.softmmu-target
        $(CC) $(XTENSA_INC) $(ASFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) $(NOSTDFLAGS) $(CRT)
 
 endif
+
+# We don't currently support the multiarch system tests
+undefine MULTIARCH_TESTS