From 898720b7e9cf3bdf7a93e435cbed5dd6942ecf9b Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Mon, 21 May 2012 18:55:48 +0200 Subject: 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 --- test/Makefile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'test/Makefile') 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 -- cgit v1.2.3-54-g00ecf