chiark
/
gitweb
/
~ianmdlvl
/
secnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test: Makefile rune for `check'
[secnet.git]
/
test
/
Makefile.in
diff --git
a/test/Makefile.in
b/test/Makefile.in
index 0f92038c38d5520f49f43d5fc149a6b302858905..4eb2ea7b7c2ef42de1b33520ab135fa587726820 100644
(file)
--- a/
test/Makefile.in
+++ b/
test/Makefile.in
@@
-3,6
+3,9
@@
CC:=@CC@
TARGETS=udp-preload.so
TARGETS=udp-preload.so
+TESTSCRIPTS ?= $(shell echo t-*[0-9a-z])
+TESTNAMES := $(patsubst t-%,%,$(notdir $(TESTSCRIPTS)))
+
all: $(TARGETS)
CFLAGS += -D_REENTRANT -fPIC
all: $(TARGETS)
CFLAGS += -D_REENTRANT -fPIC
@@
-10,6
+13,13
@@
CFLAGS += -D_REENTRANT -fPIC
udp-preload.so: udp-preload.o
$(CC) -shared -Wl,-soname,$@.1 $^ -o $@ -ldl
udp-preload.so: udp-preload.o
$(CC) -shared -Wl,-soname,$@.1 $^ -o $@ -ldl
+check: $(foreach t,$(TESTNAMES),d-$t/ok)
+
+d-%/ok: t-% udp-preload.so common.tcl ../secnet
+ @rm -rf d-$*; mkdir d-$*
+ @cd .. && test/$< >test/d-$*/log 2>&1
+ @printf "$* "
+
clean:
$(RM) -f *.o *.so
$(RM) -rf tmp
clean:
$(RM) -f *.o *.so
$(RM) -rf tmp