History

selftests/powerpc: Add install support to more powerpc tests

These tests were merged in parallel to the install support, update them now to use it. This also adds cross compile support for the VPHN test which was missing it.

Michael Ellerman committed 11 years ago

Commit 989898b1 parent ea4d1a82 files · +9 −18Browse files

Unified · Split

2 files
  1. tools/testing/selftests/powerpc/switch_endian/Makefile +4 −10
  2. tools/testing/selftests/powerpc/vphn/Makefile +5 −8
tools/testing/selftests/powerpc/switch_endian/Makefile+4−10
@@ -1,9 +1,8 @@
1−CC := $(CROSS_COMPILE)gcc
2−PROGS := switch_endian_test
1+TEST_PROGS := switch_endian_test
32
43 ASFLAGS += -O2 -Wall -g -nostdlib -m64
54
6−all: $(PROGS)
5+all: $(TEST_PROGS)
76
87 switch_endian_test: check-reversed.S
98
@@ -13,12 +12,7 @@ check-reversed.o: check.o · 3 unmodified lines
1312 check-reversed.S: check-reversed.o
1413 hexdump -v -e '/1 ".byte 0x%02X\n"' $< > $@
1514
16−run_tests: all
17− @-for PROG in $(PROGS); do \
18− ./$$PROG; \
19− done;
15+include ../../lib.mk
2016
2117 clean:
22− rm -f $(PROGS) *.o check-reversed.S
23−
24−.PHONY: all run_tests clean
18+ rm -f $(TEST_PROGS) *.o check-reversed.S
tools/testing/selftests/powerpc/vphn/Makefile+5−8
@@ -1,15 +1,12 @@
1−PROG := test-vphn
1+TEST_PROGS := test-vphn
22
33 CFLAGS += -m64
44
5−all: $(PROG)
5+all: $(TEST_PROGS)
66
7−$(PROG): ../harness.c
7+$(TEST_PROGS): ../harness.c
88
9−run_tests: all
10− ./$(PROG)
9+include ../../lib.mk
1110
1211 clean:
13− rm -f $(PROG)
14−
15−.PHONY: all run_tests clean
12+ rm -f $(TEST_PROGS)