fa1e9b0461
Testing multiple daemons connecting to each other on the same computer is usually difficult, because connections to local IP addresses will bypass most of the network stack. However, recent versions of Linux support network namespaces, which can isolate network interfaces. We use this to isolate the virtual interface of the daemons from each other, so we get the behaviour as if the daemons were each running on their own machine. This can also be used for more complicated tests (including those with firewall rules) without disturbing the real network setup of the host computer.
24 lines
419 B
Makefile
24 lines
419 B
Makefile
TESTS = \
|
|
basic.test \
|
|
commandline.test \
|
|
executables.test \
|
|
import-export.test \
|
|
invite-join.test \
|
|
ns-ping.test \
|
|
ping.test \
|
|
sptps-basic.test \
|
|
variables.test
|
|
|
|
dist_check_SCRIPTS = $(TESTS)
|
|
|
|
EXTRA_DIST = testlib.sh
|
|
|
|
check_PROGRAMS = pong
|
|
|
|
pong_SOURCES = pong.c
|
|
|
|
clean-local:
|
|
-for pid in *.test.?/pid; do ../src/tinc --pidfile="$$pid" stop; done
|
|
-killall ../src/sptps_test
|
|
-killall pong
|
|
-rm -rf *.test.?
|