From c228335bcac2a691a3048d7ce50f25079bfcea8c Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Thu, 31 Mar 2011 11:38:40 +0100 Subject: Created a unit-testing system using perl's prove --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e584298..d9a5b10 100644 --- a/Makefile +++ b/Makefile @@ -81,6 +81,15 @@ doc: $(BUILTMAN) %.3: %.3.sh sh $< >$@ +TESTSOURCES=$(wildcard t/*.c) +TESTFILES=$(TESTSOURCES:.c=.t) + +t/%.t: t/%.c $(LIBRARY) + $(LIBTOOL) --mode=link --tag=CC gcc -o $@ $^ + +test: $(TESTFILES) + prove -e "" + clean: clean-built clean-built: -- cgit v1.2.3-70-g09d2