=== modified file 'Makefile' --- Makefile 2011-03-31 11:11:19 +0000 +++ Makefile 2011-03-31 10:38:40 +0000 @@ -81,15 +81,12 @@ %.3: %.3.sh sh $< >$@ -TESTSOURCES=$(wildcard t/[0-9]*.c) +TESTSOURCES=$(wildcard t/*.c) TESTFILES=$(TESTSOURCES:.c=.t) -t/%.t: t/%.c $(LIBRARY) t/taplib.lo +t/%.t: t/%.c $(LIBRARY) $(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 "" === modified file 't/01base.c' --- t/01base.c 2011-03-31 11:11:19 +0000 +++ t/01base.c 2011-03-31 10:38:40 +0000 @@ -1,20 +1,20 @@ #include #include "termkey.h" -#include "taplib.h" int main(int argc, char *argv[]) { TermKey *tk; - plan_tests(2); + printf("1..2\n"); tk = termkey_new(0, TERMKEY_FLAG_NOTERMIOS); - ok(!!tk, "termkey_new"); + printf(tk ? "" : "not "); + printf("ok 1 - termkey_new\n"); termkey_destroy(tk); - ok(1, "termkey_free"); + printf("ok 2 - termkey_free\n"); return 0; } === removed file 't/taplib.c' --- t/taplib.c 2011-03-31 11:11:19 +0000 +++ t/taplib.c 1970-01-01 00:00:00 +0000 @@ -1,23 +0,0 @@ -#include "taplib.h" - -#include - -static int nexttest = 1; -static int _exit_status = 0; - -void plan_tests(int n) -{ - printf("1..%d\n", n); -} - -void ok(int cmp, char *name) -{ - printf("%s %d - %s\n", cmp ? "ok" : "not ok", nexttest++, name); - if(!cmp) - _exit_status = 1; -} - -int exit_status(void) -{ - return _exit_status; -} === removed file 't/taplib.h' --- t/taplib.h 2011-03-31 11:11:19 +0000 +++ t/taplib.h 1970-01-01 00:00:00 +0000 @@ -1,3 +0,0 @@ -void plan_tests(int n); -void ok(int cmp, char *name); -int exit_status(void);