2018-04-05 17:03:22 +03:00
|
|
|
# -*- Mode: makefile -*-
|
|
|
|
#
|
|
|
|
# Multiarch Tests - included from tests/tcg/Makefile.target
|
|
|
|
#
|
|
|
|
# These tests are plain C and built without any architecture specific code.
|
|
|
|
#
|
|
|
|
|
|
|
|
MULTIARCH_SRC=$(SRC_PATH)/tests/tcg/multiarch
|
|
|
|
|
|
|
|
# Set search path for all sources
|
|
|
|
VPATH += $(MULTIARCH_SRC)
|
|
|
|
MULTIARCH_SRCS =$(notdir $(wildcard $(MULTIARCH_SRC)/*.c))
|
|
|
|
MULTIARCH_TESTS =$(MULTIARCH_SRCS:.c=)
|
|
|
|
|
2019-08-07 17:35:23 +03:00
|
|
|
# FIXME: ppc64abi32 linux-test seems to have issues but the other basic tests work
|
|
|
|
ifeq ($(TARGET_NAME),ppc64abi32)
|
|
|
|
BROKEN_TESTS = linux-test
|
|
|
|
endif
|
|
|
|
|
2018-04-05 17:03:22 +03:00
|
|
|
# Update TESTS
|
2019-08-07 17:35:23 +03:00
|
|
|
TESTS += $(filter-out $(BROKEN_TESTS), $(MULTIARCH_TESTS))
|
2018-04-05 17:03:22 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# The following are any additional rules needed to build things
|
|
|
|
#
|
|
|
|
|
|
|
|
testthread: LDFLAGS+=-lpthread
|
|
|
|
|
|
|
|
# We define the runner for test-mmap after the individual
|
|
|
|
# architectures have defined their supported pages sizes. If no
|
|
|
|
# additional page sizes are defined we only run the default test.
|
|
|
|
|
|
|
|
# default case (host page size)
|
|
|
|
run-test-mmap: test-mmap
|
2018-05-21 12:38:37 +03:00
|
|
|
$(call run-test, test-mmap, $(QEMU) $<, \
|
2018-04-05 17:03:22 +03:00
|
|
|
"$< (default) on $(TARGET_NAME)")
|
|
|
|
|
|
|
|
# additional page sizes (defined by each architecture adding to EXTRA_RUNS)
|
|
|
|
run-test-mmap-%: test-mmap
|
2018-05-21 12:38:37 +03:00
|
|
|
$(call run-test, test-mmap-$*, $(QEMU) -p $* $<,\
|
2018-04-05 17:03:22 +03:00
|
|
|
"$< ($* byte pages) on $(TARGET_NAME)")
|