Created a unit-testing system using perl's prove

This commit is contained in:
Paul LeoNerd Evans
2011-03-31 11:38:40 +01:00
parent 26ef76349e
commit c228335bca
2 changed files with 29 additions and 0 deletions

View File

@@ -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: