summaryrefslogtreecommitdiff
path: root/test/Makefile
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2012-05-21 18:55:48 +0200
committerKay Sievers <kay@vrfy.org>2012-05-22 16:54:54 +0200
commit898720b7e9cf3bdf7a93e435cbed5dd6942ecf9b (patch)
tree2f708eeb4e95b6a55fc256796d9c46bd7c1a73fd /test/Makefile
parent9b958eff3fbcc345a72315a9167f6217dd841c40 (diff)
test: introduce a basic testsuite framework
$ cd test $ sudo make check will run all tests in the TEST-* subdirectories $ cd test/TEST-01-BASIC $ sudo make clean setup run will run the different stages of the test for debugging purposes
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/test/Makefile b/test/Makefile
index 9aa46b4eb6..987a32548f 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -1,7 +1,20 @@
# Just a little hook script to easy building when in this directory
+.PHONY: all check clean
all:
$(MAKE) -C ..
clean:
- $(MAKE) -C .. clean
+ @for i in TEST-[0-9]*; do \
+ [ -d $$i ] || continue ; \
+ [ -f $$i/Makefile ] || continue ; \
+ make -C $$i clean ; \
+ done
+
+check:
+ $(MAKE) -C .. all
+ @for i in TEST-[0-9]*; do \
+ [ -d $$i ] || continue ; \
+ [ -f $$i/Makefile ] || continue ; \
+ make -C $$i all ; \
+ done