Test running ping through two tinc daemons.
This is a more complicated test with one tinc daemon using a tap interface (therefore requiring root), and a second one using a multicast interface. A separate program "pong" is listening on the same multicast address, and waits for ARP and ICMP packets, responding to ICMP echo packets with replies. This test doesn't require any configuration of the tap interface.
This commit is contained in:
parent
fe1d0043c8
commit
b80cbaba04
3 changed files with 258 additions and 0 deletions
|
|
@ -4,12 +4,18 @@ TESTS = \
|
|||
executables.test \
|
||||
import-export.test \
|
||||
invite-join.test \
|
||||
ping.test \
|
||||
sptps-basic.test \
|
||||
variables.test
|
||||
|
||||
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.?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue