Skip to content

Commit 989898b

Browse files
committed
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. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent ea4d1a8 commit 989898b

2 files changed

Lines changed: 9 additions & 18 deletions

File tree

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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
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
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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)

0 commit comments

Comments
 (0)