From c8a771828e1d5fc8c476bbd650fafcfb7ba390a8 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 11 Nov 2019 23:09:57 -0500 Subject: Test getopt_config --- Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c0ea331..d8f8504 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,9 @@ OBJS += ring.o OBJS += server.o OBJS += state.o -dev: tags all +TESTS += config.t + +dev: tags all test all: ${BINS} @@ -37,6 +39,15 @@ ${OBJS}: bounce.h compat.h dispatch.o: compat.h +test: ${TESTS} + set -e; ${TESTS:%=./%;} + touch test + +.SUFFIXES: .t + +.c.t: + ${CC} ${CFLAGS} -DTEST ${LDFLAGS} $< ${LDLIBS} -o $@ + tags: *.c *.h ctags -w *.c *.h -- cgit 1.4.1