aboutsummaryrefslogtreecommitdiff
path: root/src/vpn/tests/test-helper-icmp.sh
blob: 2d0c8425ac743297d26226032aba0479a082d2ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

/opt/gnunet/bin/gnunet-helper-vpn < ping > result 2>/dev/null &

PID=$!

sleep 1

kill $PID

if cmp result expected; then
	echo OK
	exit 0
else
	echo FAILED: ICMP-Reply
	exit 1
fi