From: Don Armstrong Date: Wed, 19 Mar 2014 16:24:59 +0000 (-0700) Subject: add test target to makefile X-Git-Url: https://git.donarmstrong.com/?p=bugscan.git;a=commitdiff_plain;h=b3b7830e4a6f50963a8adca0cdd42d201df718b9 add test target to makefile --- diff --git a/Makefile b/Makefile index ce8065f..d4c8845 100644 --- 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