aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/stringloops
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/stringloops
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/stringloops')
-rw-r--r--tools/testing/selftests/powerpc/stringloops/Makefile15
1 files changed, 5 insertions, 10 deletions
diff --git a/tools/testing/selftests/powerpc/stringloops/Makefile b/tools/testing/selftests/powerpc/stringloops/Makefile
index 506d77346477..2a728f4d2873 100644
--- a/tools/testing/selftests/powerpc/stringloops/Makefile
+++ b/tools/testing/selftests/powerpc/stringloops/Makefile
@@ -2,19 +2,14 @@
2CFLAGS += -m64 2CFLAGS += -m64
3CFLAGS += -I$(CURDIR) 3CFLAGS += -I$(CURDIR)
4 4
5PROGS := memcmp 5TEST_PROGS := memcmp
6EXTRA_SOURCES := memcmp_64.S ../harness.c 6EXTRA_SOURCES := memcmp_64.S ../harness.c
7 7
8all: $(PROGS) 8all: $(TEST_PROGS)
9 9
10$(PROGS): $(EXTRA_SOURCES) 10$(TEST_PROGS): $(EXTRA_SOURCES)
11 11
12run_tests: all 12include ../../lib.mk
13 @-for PROG in $(PROGS); do \
14 ./$$PROG; \
15 done;
16 13
17clean: 14clean:
18 rm -f $(PROGS) *.o 15 rm -f $(TEST_PROGS) *.o
19
20.PHONY: all run_tests clean