Add make test.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 9 Mar 2010 21:44:57 +0000 (22:44 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 9 Mar 2010 21:44:57 +0000 (22:44 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Makefile
ut/Makefile [new file with mode: 0644]

index 6497d26..13da69d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -12,6 +12,9 @@ all: build
 
 build: include/version.inc.php
 
+test:
+       make -C ut test
+
 clean:
        -rm include/version.inc.php
 
@@ -28,4 +31,4 @@ q:
 include/version.inc.php: Makefile ChangeLog
        echo '<?php define("PLATAL_CORE_VERSION", "${VERSION}"); ?>' > $@
 
-.PHONY: build dist clean q
+.PHONY: build dist clean q test
diff --git a/ut/Makefile b/ut/Makefile
new file mode 100644 (file)
index 0000000..3456003
--- /dev/null
@@ -0,0 +1,9 @@
+files=$(addprefix test-,$(wildcard *.php))
+
+test: $(files)
+       echo "$(files)"
+
+test-%:
+       phpunit $*
+
+.PHONY: test test-%