Commit f467f714 authored by Frederic Weisbecker's avatar Frederic Weisbecker Committed by Linus Torvalds

selftests: launch individual selftests from the main Makefile

Remove the run_tests script and launch the selftests by calling "make
run_tests" from the selftests top directory instead.  This delegates to
the Makefile in each selftest directory, where it is decided how to launch
the local test.

This removes the need to add each selftest directory to the now removed
"run_tests" top script.
Signed-off-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Christoph Lameter <cl@linux.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 0fc9d104
...@@ -5,6 +5,11 @@ all: ...@@ -5,6 +5,11 @@ all:
make -C $$TARGET; \ make -C $$TARGET; \
done; done;
run_tests:
for TARGET in $(TARGETS); do \
make -C $$TARGET run_tests; \
done;
clean: clean:
for TARGET in $(TARGETS); do \ for TARGET in $(TARGETS); do \
make -C $$TARGET clean; \ make -C $$TARGET clean; \
......
...@@ -11,10 +11,13 @@ endif ...@@ -11,10 +11,13 @@ endif
all: all:
ifeq ($(ARCH),x86) ifeq ($(ARCH),x86)
gcc breakpoint_test.c -o run_test gcc breakpoint_test.c -o breakpoint_test
else else
echo "Not an x86 target, can't build breakpoints selftests" echo "Not an x86 target, can't build breakpoints selftests"
endif endif
run_tests:
./breakpoint_test
clean: clean:
rm -fr run_test rm -fr breakpoint_test
#!/bin/bash
TARGETS=breakpoints
for TARGET in $TARGETS
do
$TARGET/run_test
done
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment