diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2015-03-11 04:06:01 (GMT) |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2015-03-19 18:38:51 (GMT) |
commit | 6faeeea44b84ce24fc6c1f1beb07ee5de9885dc8 (patch) | |
tree | ee9e473870eea00b5672564825bfab7e374fed3b /tools/testing/selftests/powerpc/mm | |
parent | 5744de542dd4b963c2975e6f70844ce2899864e4 (diff) | |
download | linux-6faeeea44b84ce24fc6c1f1beb07ee5de9885dc8.tar.xz |
selftests: Add install support for the powerpc tests
The bulk of the selftests are actually below the powerpc sub directory.
This adds support for installing them, when on a powerpc machine, or if
ARCH and CROSS_COMPILE are set appropriately.
This is a little more complicated because of the sub directory structure
under powerpc, but much of the common logic in lib.mk is still used. The
net effect of the patch is still a reduction in code.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing/selftests/powerpc/mm')
-rw-r--r-- | tools/testing/selftests/powerpc/mm/Makefile | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/tools/testing/selftests/powerpc/mm/Makefile b/tools/testing/selftests/powerpc/mm/Makefile index a14c538..41cc3ed 100644 --- a/tools/testing/selftests/powerpc/mm/Makefile +++ b/tools/testing/selftests/powerpc/mm/Makefile @@ -1,21 +1,16 @@ noarg: $(MAKE) -C ../ -PROGS := hugetlb_vs_thp_test subpage_prot +TEST_PROGS := hugetlb_vs_thp_test subpage_prot -all: $(PROGS) tempfile +all: $(TEST_PROGS) tempfile -$(PROGS): ../harness.c +$(TEST_PROGS): ../harness.c -run_tests: all - @-for PROG in $(PROGS); do \ - ./$$PROG; \ - done; +include ../../lib.mk tempfile: dd if=/dev/zero of=tempfile bs=64k count=1 clean: - rm -f $(PROGS) tempfile - -.PHONY: all run_tests clean + rm -f $(TEST_PROGS) tempfile |