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.
Unified · Split
| @@ -1,9 +1,8 @@ | ||
| 1 | −CC := $(CROSS_COMPILE)gcc | |
| 2 | −PROGS := switch_endian_test | |
| 1 | +TEST_PROGS := switch_endian_test | |
| 3 | 2 | |
| 4 | 3 | ASFLAGS += -O2 -Wall -g -nostdlib -m64 |
| 5 | 4 | |
| 6 | −all: $(PROGS) | |
| 5 | +all: $(TEST_PROGS) | |
| 7 | 6 | |
| 8 | 7 | switch_endian_test: check-reversed.S |
| 9 | 8 | |
| @@ -13,12 +12,7 @@ check-reversed.o: check.o · 3 unmodified lines | ||
| 13 | 12 | check-reversed.S: check-reversed.o |
| 14 | 13 | hexdump -v -e '/1 ".byte 0x%02X\n"' $< > $@ |
| 15 | 14 | |
| 16 | −run_tests: all | |
| 17 | − @-for PROG in $(PROGS); do \ | |
| 18 | − ./$$PROG; \ | |
| 19 | − done; | |
| 15 | +include ../../lib.mk | |
| 20 | 16 | |
| 21 | 17 | 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 | |
| @@ -1,15 +1,12 @@ | ||
| 1 | −PROG := test-vphn | |
| 1 | +TEST_PROGS := test-vphn | |
| 2 | 2 | |
| 3 | 3 | CFLAGS += -m64 |
| 4 | 4 | |
| 5 | −all: $(PROG) | |
| 5 | +all: $(TEST_PROGS) | |
| 6 | 6 | |
| 7 | −$(PROG): ../harness.c | |
| 7 | +$(TEST_PROGS): ../harness.c | |
| 8 | 8 | |
| 9 | −run_tests: all | |
| 10 | − ./$(PROG) | |
| 9 | +include ../../lib.mk | |
| 11 | 10 | |
| 12 | 11 | clean: |
| 13 | − rm -f $(PROG) | |
| 14 | − | |
| 15 | −.PHONY: all run_tests clean | |
| 12 | + rm -f $(TEST_PROGS) | |