diff options
-rw-r--r-- | tools/testing/selftests/futex/Makefile | 20 | ||||
-rw-r--r-- | tools/testing/selftests/futex/functional/Makefile | 5 |
2 files changed, 22 insertions, 3 deletions
diff --git a/tools/testing/selftests/futex/Makefile b/tools/testing/selftests/futex/Makefile index 2c26d59aaaee..6a1752956283 100644 --- a/tools/testing/selftests/futex/Makefile +++ b/tools/testing/selftests/futex/Makefile | |||
@@ -1,11 +1,29 @@ | |||
1 | SUBDIRS := functional | 1 | SUBDIRS := functional |
2 | 2 | ||
3 | TEST_PROGS := run.sh | ||
4 | |||
3 | .PHONY: all clean | 5 | .PHONY: all clean |
4 | all: | 6 | all: |
5 | for DIR in $(SUBDIRS); do $(MAKE) -C $$DIR $@ ; done | 7 | for DIR in $(SUBDIRS); do $(MAKE) -C $$DIR $@ ; done |
6 | 8 | ||
7 | run_tests: all | 9 | include ../lib.mk |
10 | |||
11 | override define RUN_TESTS | ||
8 | ./run.sh | 12 | ./run.sh |
13 | endef | ||
14 | |||
15 | override define INSTALL_RULE | ||
16 | mkdir -p $(INSTALL_PATH) | ||
17 | install -t $(INSTALL_PATH) $(TEST_PROGS) $(TEST_PROGS_EXTENDED) $(TEST_FILES) | ||
18 | |||
19 | @for SUBDIR in $(SUBDIRS); do \ | ||
20 | $(MAKE) -C $$SUBDIR INSTALL_PATH=$(INSTALL_PATH)/$$SUBDIR install; \ | ||
21 | done; | ||
22 | endef | ||
23 | |||
24 | override define EMIT_TESTS | ||
25 | echo "./run.sh" | ||
26 | endef | ||
9 | 27 | ||
10 | clean: | 28 | clean: |
11 | for DIR in $(SUBDIRS); do $(MAKE) -C $$DIR $@ ; done | 29 | for DIR in $(SUBDIRS); do $(MAKE) -C $$DIR $@ ; done |
diff --git a/tools/testing/selftests/futex/functional/Makefile b/tools/testing/selftests/futex/functional/Makefile index 720023e21781..4b018febf9f1 100644 --- a/tools/testing/selftests/futex/functional/Makefile +++ b/tools/testing/selftests/futex/functional/Makefile | |||
@@ -12,13 +12,14 @@ TARGETS := \ | |||
12 | futex_wait_uninitialized_heap \ | 12 | futex_wait_uninitialized_heap \ |
13 | futex_wait_private_mapped_file | 13 | futex_wait_private_mapped_file |
14 | 14 | ||
15 | TEST_PROGS := $(TARGETS) run.sh | ||
16 | |||
15 | .PHONY: all clean | 17 | .PHONY: all clean |
16 | all: $(TARGETS) | 18 | all: $(TARGETS) |
17 | 19 | ||
18 | $(TARGETS): $(HEADERS) | 20 | $(TARGETS): $(HEADERS) |
19 | 21 | ||
20 | run_tests: all | 22 | include ../../lib.mk |
21 | ./run.sh | ||
22 | 23 | ||
23 | clean: | 24 | clean: |
24 | rm -f $(TARGETS) | 25 | rm -f $(TARGETS) |