1 # -*- Mode: makefile -*-
3 # Multiarch Tests - included from tests/tcg/Makefile.target
5 # These tests are plain C and built without any architecture specific code.
8 MULTIARCH_SRC=$(SRC_PATH)/tests/tcg/multiarch
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=)
16 TESTS +=$(MULTIARCH_TESTS)
19 # The following are any additional rules needed to build things
22 testthread: LDFLAGS+=-lpthread
24 # We define the runner for test-mmap after the individual
25 # architectures have defined their supported pages sizes. If no
26 # additional page sizes are defined we only run the default test.
28 # default case (host page size)
29 run-test-mmap: test-mmap
30 $(call quiet-command, $(QEMU) $< > test-mmap.out, "TEST", \
31 "$< (default) on $(TARGET_NAME)")
33 # additional page sizes (defined by each architecture adding to EXTRA_RUNS)
34 run-test-mmap-%: test-mmap
35 $(call quiet-command, $(QEMU) -p $* $< > test-mmap-$*.out, "TEST", \
36 "$< ($* byte pages) on $(TARGET_NAME)")