aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/mm
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2015-03-11 00:06:01 -0400
committerShuah Khan <shuahkh@osg.samsung.com>2015-03-19 14:38:51 -0400
commit6faeeea44b84ce24fc6c1f1beb07ee5de9885dc8 (patch)
treeee9e473870eea00b5672564825bfab7e374fed3b /tools/testing/selftests/powerpc/mm
parent5744de542dd4b963c2975e6f70844ce2899864e4 (diff)
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/Makefile15
1 files changed, 5 insertions, 10 deletions
diff --git a/tools/testing/selftests/powerpc/mm/Makefile b/tools/testing/selftests/powerpc/mm/Makefile
index a14c538dd7f8..41cc3ed66818 100644
--- a/tools/testing/selftests/powerpc/mm/Makefile
+++ b/tools/testing/selftests/powerpc/mm/Makefile
@@ -1,21 +1,16 @@
1noarg: 1noarg:
2 $(MAKE) -C ../ 2 $(MAKE) -C ../
3 3
4PROGS := hugetlb_vs_thp_test subpage_prot 4TEST_PROGS := hugetlb_vs_thp_test subpage_prot
5 5
6all: $(PROGS) tempfile 6all: $(TEST_PROGS) tempfile
7 7
8$(PROGS): ../harness.c 8$(TEST_PROGS): ../harness.c
9 9
10run_tests: all 10include ../../lib.mk
11 @-for PROG in $(PROGS); do \
12 ./$$PROG; \
13 done;
14 11
15tempfile: 12tempfile:
16 dd if=/dev/zero of=tempfile bs=64k count=1 13 dd if=/dev/zero of=tempfile bs=64k count=1
17 14
18clean: 15clean:
19 rm -f $(PROGS) tempfile 16 rm -f $(TEST_PROGS) tempfile
20
21.PHONY: all run_tests clean