diff options
| -rw-r--r-- | tools/testing/selftests/Makefile | 5 | ||||
| -rw-r--r-- | tools/testing/selftests/breakpoints/Makefile | 7 | ||||
| -rw-r--r-- | tools/testing/selftests/run_tests | 8 |
3 files changed, 10 insertions, 10 deletions
diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile index 4ec84018cc13..b1119f0db518 100644 --- a/tools/testing/selftests/Makefile +++ b/tools/testing/selftests/Makefile | |||
| @@ -5,6 +5,11 @@ all: | |||
| 5 | make -C $$TARGET; \ | 5 | make -C $$TARGET; \ |
| 6 | done; | 6 | done; |
| 7 | 7 | ||
| 8 | run_tests: | ||
| 9 | for TARGET in $(TARGETS); do \ | ||
| 10 | make -C $$TARGET run_tests; \ | ||
| 11 | done; | ||
| 12 | |||
| 8 | clean: | 13 | clean: |
| 9 | for TARGET in $(TARGETS); do \ | 14 | for TARGET in $(TARGETS); do \ |
| 10 | make -C $$TARGET clean; \ | 15 | make -C $$TARGET clean; \ |
diff --git a/tools/testing/selftests/breakpoints/Makefile b/tools/testing/selftests/breakpoints/Makefile index f362722cdce7..931278035f5c 100644 --- a/tools/testing/selftests/breakpoints/Makefile +++ b/tools/testing/selftests/breakpoints/Makefile | |||
| @@ -11,10 +11,13 @@ endif | |||
| 11 | 11 | ||
| 12 | all: | 12 | all: |
| 13 | ifeq ($(ARCH),x86) | 13 | ifeq ($(ARCH),x86) |
| 14 | gcc breakpoint_test.c -o run_test | 14 | gcc breakpoint_test.c -o breakpoint_test |
| 15 | else | 15 | else |
| 16 | echo "Not an x86 target, can't build breakpoints selftests" | 16 | echo "Not an x86 target, can't build breakpoints selftests" |
| 17 | endif | 17 | endif |
| 18 | 18 | ||
| 19 | run_tests: | ||
| 20 | ./breakpoint_test | ||
| 21 | |||
| 19 | clean: | 22 | clean: |
| 20 | rm -fr run_test | 23 | rm -fr breakpoint_test |
diff --git a/tools/testing/selftests/run_tests b/tools/testing/selftests/run_tests deleted file mode 100644 index 320718a4e6bf..000000000000 --- a/tools/testing/selftests/run_tests +++ /dev/null | |||
| @@ -1,8 +0,0 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | |||
| 3 | TARGETS=breakpoints | ||
| 4 | |||
| 5 | for TARGET in $TARGETS | ||
| 6 | do | ||
| 7 | $TARGET/run_test | ||
| 8 | done | ||
