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 @@
1CC := $(CROSS_COMPILE)gcc1TEST_PROGS := switch_endian_test
2PROGS := switch_endian_test
3 2
4ASFLAGS += -O2 -Wall -g -nostdlib -m643ASFLAGS += -O2 -Wall -g -nostdlib -m64
5 4
6all: $(PROGS)5all: $(TEST_PROGS)
7 6
8switch_endian_test: check-reversed.S7switch_endian_test: check-reversed.S
9 8
@@ -13,12 +12,7 @@ check-reversed.o: check.o · 3 unmodified lines
13check-reversed.S: check-reversed.o12check-reversed.S: check-reversed.o
14 hexdump -v -e '/1 ".byte 0x%02X\n"' $< > $@13 hexdump -v -e '/1 ".byte 0x%02X\n"' $< > $@
15 14
16run_tests: all15include ../../lib.mk
17 @-for PROG in $(PROGS); do \
18 ./$$PROG; \
19 done;
20 16
21clean:17clean:
22 rm -f $(PROGS) *.o check-reversed.S18 rm -f $(TEST_PROGS) *.o check-reversed.S
23
24.PHONY: all run_tests clean
tools/testing/selftests/powerpc/vphn/Makefile+5−8
@@ -1,15 +1,12 @@
1PROG := test-vphn1TEST_PROGS := test-vphn
2 2
3CFLAGS += -m643CFLAGS += -m64
4 4
5all: $(PROG)5all: $(TEST_PROGS)
6 6
7$(PROG): ../harness.c7$(TEST_PROGS): ../harness.c
8 8
9run_tests: all9include ../../lib.mk
10 ./$(PROG)
11 10
12clean:11clean:
13 rm -f $(PROG)12 rm -f $(TEST_PROGS)
14
15.PHONY: all run_tests clean