7 sptps_test=../src/sptps_test
8 sptps_keypair=../src/sptps_keypair
12 scriptname=`basename $0`
17 # Default arguments for both tinc and tincd
19 c1="--config=$d1 --pidfile=$d1/pid"
20 c2="--config=$d2 --pidfile=$d2/pid"
21 c3="--config=$d3 --pidfile=$d3/pid"
23 # Arguments when running tincd
25 r1="--logfile=$d1/log -d5"
26 r2="--logfile=$d2/log -d5"
27 r3="--logfile=$d3/log -d5"
29 # Check for leftover tinc daemons
31 [ -f $d1/pid ] && $tinc $c1 stop
32 [ -f $d2/pid ] && $tinc $c2 stop
33 [ -f $d3/pid ] && $tinc $c3 stop
35 # Remove test directories
39 # Exit on errors, log all commands being executed