1277fb0d157fa531f4dd15c0fa08637350426a1b
[tinc] / test / basic.test
1 #!/bin/sh
2
3 . ./testlib.sh
4
5 # Initialize and test one node
6
7 rm -rf config1
8
9 $tinc $c1 init foo
10 $tinc $c1 set DeviceType dummy
11 $tinc $c1 set Port 0
12
13 # Test running in the foreground
14
15 (sleep 1; $tinc $c1 stop) &
16 $tinc $c1 start $r1 -D
17
18 # Test running tinc in the background
19
20 $tinc $c1 start $r1
21 sleep 1
22 $tinc $c1 stop