Test two tinc daemons using network namespaces.
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.
This commit is contained in:
parent
38adc8bf54
commit
fa1e9b0461
2 changed files with 71 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ TESTS = \
|
|||
executables.test \
|
||||
import-export.test \
|
||||
invite-join.test \
|
||||
ns-ping.test \
|
||||
ping.test \
|
||||
sptps-basic.test \
|
||||
variables.test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue