tests/tcg: also disable the signals test for plugins
[qemu.git] / tests / tcg / i386 / Makefile.target
blobb0a212898066e40770a2802e3b382740b3c53e3e
1 # i386 cross compile notes
3 I386_SRC=$(SRC_PATH)/tests/tcg/i386
5 # Set search path for all sources
6 VPATH           += $(I386_SRC)
8 I386_SRCS=$(notdir $(wildcard $(I386_SRC)/*.c))
9 ALL_X86_TESTS=$(I386_SRCS:.c=)
10 SKIP_I386_TESTS=test-i386-ssse3
11 X86_64_TESTS:=$(filter test-i386-ssse3, $(ALL_X86_TESTS))
13 test-i386-sse-exceptions: CFLAGS += -msse4.1 -mfpmath=sse
14 run-test-i386-sse-exceptions: QEMU_OPTS += -cpu max
15 run-plugin-test-i386-sse-exceptions-%: QEMU_OPTS += -cpu max
17 test-i386-pcmpistri: CFLAGS += -msse4.2
18 run-test-i386-pcmpistri: QEMU_OPTS += -cpu max
19 run-plugin-test-i386-pcmpistri-%: QEMU_OPTS += -cpu max
21 run-test-i386-bmi2: QEMU_OPTS += -cpu max
22 run-plugin-test-i386-bmi2-%: QEMU_OPTS += -cpu max
25 # hello-i386 is a barebones app
27 hello-i386: CFLAGS+=-ffreestanding
28 hello-i386: LDFLAGS+=-nostdlib
30 # test-386 includes a couple of additional objects that need to be
31 # linked together, we also need a no-pie capable compiler due to the
32 # non-pic calls into 16-bit mode
33 ifneq ($(DOCKER_IMAGE)$(CROSS_CC_HAS_I386_NOPIE),)
34 test-i386: CFLAGS += -fno-pie
36 test-i386: test-i386.c test-i386-code16.S test-i386-vm86.S test-i386.h test-i386-shift.h test-i386-muldiv.h
37         $(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_CFLAGS) -o $@ \
38            $(<D)/test-i386.c $(<D)/test-i386-code16.S $(<D)/test-i386-vm86.S -lm
39 else
40 test-i386:
41         $(call skip-test, "BUILD of $@", "missing -no-pie compiler support")
42 run-test-i386:
43         $(call skip-test, "RUN of test-i386", "not built")
44 run-plugin-test-i386-with-%:
45         $(call skip-test, "RUN of test-i386 ($*)", "not built")
46 endif
48 ifeq ($(SPEED), slow)
50 test-i386-fprem.ref: test-i386-fprem
51         $(call quiet-command, ./$< > $@,"GENREF","generating $@")
53 run-test-i386-fprem: TIMEOUT=60
54 run-test-i386-fprem: test-i386-fprem test-i386-fprem.ref
55         $(call run-test,test-i386-fprem, $(QEMU) $<,"$< on $(TARGET_NAME)")
56         $(call diff-out,test-i386-fprem, test-i386-fprem.ref)
57 else
58 SKIP_I386_TESTS+=test-i386-fprem
59 endif
61 # non-inline runs will trigger the duplicate instruction heuristics in libinsn.so
62 run-plugin-%-with-libinsn.so:
63         $(call run-test, $@, $(QEMU) $(QEMU_OPTS) \
64                -plugin ../../plugin/libinsn.so$(COMMA)arg=inline \
65                -d plugin -D $*-with-libinsn.so.pout $*, \
66                 "$* (inline) on $(TARGET_NAME)")
68 run-plugin-signals-with-libinsn.so:
69         $(call skip-test, $<, "BROKEN awaiting sigframe clean-ups and vdso support")
71 # Update TESTS
72 I386_TESTS:=$(filter-out $(SKIP_I386_TESTS), $(ALL_X86_TESTS))
73 TESTS=$(MULTIARCH_TESTS) $(I386_TESTS)
75 # On i386 and x86_64 Linux only supports 4k pages (large pages are a different hack)
76 EXTRA_RUNS+=run-test-mmap-4096