diff options
author | Harald Hoyer <harald@redhat.com> | 2012-05-21 18:55:48 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2012-05-22 16:54:54 +0200 |
commit | 898720b7e9cf3bdf7a93e435cbed5dd6942ecf9b (patch) | |
tree | 2f708eeb4e95b6a55fc256796d9c46bd7c1a73fd /test/Makefile | |
parent | 9b958eff3fbcc345a72315a9167f6217dd841c40 (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/Makefile | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/test/Makefile b/test/Makefile index 9aa46b4eb..987a32548 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 |