aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/testing/selftests/futex/Makefile20
-rw-r--r--tools/testing/selftests/futex/functional/Makefile5
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 @@
1SUBDIRS := functional 1SUBDIRS := functional
2 2
3TEST_PROGS := run.sh
4
3.PHONY: all clean 5.PHONY: all clean
4all: 6all:
5 for DIR in $(SUBDIRS); do $(MAKE) -C $$DIR $@ ; done 7 for DIR in $(SUBDIRS); do $(MAKE) -C $$DIR $@ ; done
6 8
7run_tests: all 9include ../lib.mk
10
11override define RUN_TESTS
8 ./run.sh 12 ./run.sh
13endef
14
15override 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;
22endef
23
24override define EMIT_TESTS
25 echo "./run.sh"
26endef
9 27
10clean: 28clean:
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
15TEST_PROGS := $(TARGETS) run.sh
16
15.PHONY: all clean 17.PHONY: all clean
16all: $(TARGETS) 18all: $(TARGETS)
17 19
18$(TARGETS): $(HEADERS) 20$(TARGETS): $(HEADERS)
19 21
20run_tests: all 22include ../../lib.mk
21 ./run.sh
22 23
23clean: 24clean:
24 rm -f $(TARGETS) 25 rm -f $(TARGETS)