]> git.donarmstrong.com Git - bugscan.git/blobdiff - Makefile
add test target to makefile
[bugscan.git] / Makefile
index ce8065f3a689078791b59e4f18de463301c3588e..d4c884595bf16361e992a017b6574e604acfec62 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,10 @@
+PERL ?= /usr/bin/perl
+
+test:
+       $(PERL) -MTest::Harness -I. -e 'runtests(glob(q(t/*.t)))'
+
+test_%: t/%.t
+       $(PERL) -MTest::Harness -I. -e 'runtests(q($<))'
 
 html:
        ./dohtml
@@ -14,4 +21,4 @@ status:
 rescan:
        ./crontab
 
-.PHONY: html graph post status rescan
+.PHONY: html graph post status rescan test