e65127d6acf9bd3b20779ad9a30b98195aedcf50
[tinc] / test / testlib.sh
1 #!/bin/sh
2
3 # Paths to executables
4
5 tincd=../src/tincd
6 tinc=../src/tinc
7 sptps_test=../src/sptps_test
8
9 # Test directories
10
11 d1=$PWD/$_.1
12 d2=$PWD/$_.2
13 d3=$PWD/$_.3
14
15 # Remove test directories
16
17 rm -rf $d1 $d2 $d3
18
19 # Default arguments for both tinc and tincd
20
21 c1="--config=$d1 --pidfile=$d1/pid"
22 c2="--config=$d2 --pidfile=$d2/pid"
23 c3="--config=$d3 --pidfile=$d3/pid"
24
25 # Arguments when running tincd
26
27 r1="--logfile=$d1/log -d5"
28 r2="--logfile=$d1/log -d5"
29 r3="--logfile=$d1/log -d5"
30
31 # Exit on errors, log all commands being executed
32
33 set -ex