]> git.ipfire.org Git - thirdparty/qemu.git/blob - tests/tcg/i386/Makefile.target
tests/tcg: drop test-i386-fprem from TESTS when not SLOW
[thirdparty/qemu.git] / tests / tcg / i386 / Makefile.target
1 # i386 cross compile notes
2
3 I386_SRC=$(SRC_PATH)/tests/tcg/i386
4
5 # Set search path for all sources
6 VPATH += $(I386_SRC)
7
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))
12
13 #
14 # hello-i386 is a barebones app
15 #
16 hello-i386: CFLAGS+=-ffreestanding
17 hello-i386: LDFLAGS+=-nostdlib
18
19 #
20 # test-386 includes a couple of additional objects that need to be linked together
21 #
22
23 test-i386: test-i386.c test-i386-code16.S test-i386-vm86.S test-i386.h test-i386-shift.h test-i386-muldiv.h
24 $(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_CFLAGS) -o $@ \
25 $(<D)/test-i386.c $(<D)/test-i386-code16.S $(<D)/test-i386-vm86.S -lm
26
27 ifeq ($(SPEED), slow)
28
29 test-i386-fprem.ref: test-i386-fprem
30 $(call quiet-command, ./$< > $@,"GENREF","generating $@")
31
32 run-test-i386-fprem: TIMEOUT=60
33 run-test-i386-fprem: test-i386-fprem test-i386-fprem.ref
34 $(call run-test,test-i386-fprem, $(QEMU) $<,"$< on $(TARGET_NAME)")
35 $(call diff-out,test-i386-fprem, test-i386-fprem.ref)
36 else
37 SKIP_I386_TESTS+=test-i386-fprem
38 endif
39
40 # Update TESTS
41 I386_TESTS:=$(filter-out $(SKIP_I386_TESTS), $(ALL_X86_TESTS))
42 TESTS=$(MULTIARCH_TESTS) $(I386_TESTS)
43
44 # On i386 and x86_64 Linux only supports 4k pages (large pages are a different hack)
45 EXTRA_RUNS+=run-test-mmap-4096