Created a little Test::More-like library for TAP testing

This commit is contained in:
Paul LeoNerd Evans
2011-03-31 12:11:19 +01:00
parent 620038af72
commit 3bbda921b7
4 changed files with 35 additions and 6 deletions

View File

@@ -81,12 +81,15 @@ doc: $(BUILTMAN)
%.3: %.3.sh
sh $< >$@
TESTSOURCES=$(wildcard t/*.c)
TESTSOURCES=$(wildcard t/[0-9]*.c)
TESTFILES=$(TESTSOURCES:.c=.t)
t/%.t: t/%.c $(LIBRARY)
t/%.t: t/%.c $(LIBRARY) t/taplib.lo
$(LIBTOOL) --mode=link --tag=CC gcc -o $@ $^
t/taplib.lo: t/taplib.c
$(LIBTOOL) --mode=compile --tag=CC gcc $(CFLAGS) -o $@ -c $^
test: $(TESTFILES)
prove -e ""