]>
Commit | Line | Data |
---|---|---|
dd28bebd AB |
1 | # -*- Mode: makefile -*- |
2 | # | |
3 | # Multiarch Tests - included from tests/tcg/Makefile.target | |
4 | # | |
5 | # These tests are plain C and built without any architecture specific code. | |
6 | # | |
7 | ||
8 | MULTIARCH_SRC=$(SRC_PATH)/tests/tcg/multiarch | |
9 | ||
10 | # Set search path for all sources | |
11 | VPATH += $(MULTIARCH_SRC) | |
12 | MULTIARCH_SRCS =$(notdir $(wildcard $(MULTIARCH_SRC)/*.c)) | |
13 | MULTIARCH_TESTS =$(MULTIARCH_SRCS:.c=) | |
14 | ||
2038f8c8 PB |
15 | # FIXME: ppc64abi32 linux-test seems to have issues but the other basic tests work |
16 | ifeq ($(TARGET_NAME),ppc64abi32) | |
17 | BROKEN_TESTS = linux-test | |
18 | endif | |
19 | ||
dd28bebd | 20 | # Update TESTS |
2038f8c8 | 21 | TESTS += $(filter-out $(BROKEN_TESTS), $(MULTIARCH_TESTS)) |
dd28bebd AB |
22 | |
23 | # | |
24 | # The following are any additional rules needed to build things | |
25 | # | |
26 | ||
27 | testthread: LDFLAGS+=-lpthread | |
28 | ||
29 | # We define the runner for test-mmap after the individual | |
30 | # architectures have defined their supported pages sizes. If no | |
31 | # additional page sizes are defined we only run the default test. | |
32 | ||
33 | # default case (host page size) | |
34 | run-test-mmap: test-mmap | |
607bf9b5 | 35 | $(call run-test, test-mmap, $(QEMU) $<, \ |
dd28bebd AB |
36 | "$< (default) on $(TARGET_NAME)") |
37 | ||
38 | # additional page sizes (defined by each architecture adding to EXTRA_RUNS) | |
39 | run-test-mmap-%: test-mmap | |
607bf9b5 | 40 | $(call run-test, test-mmap-$*, $(QEMU) -p $* $<,\ |
dd28bebd | 41 | "$< ($* byte pages) on $(TARGET_NAME)") |