Fix tests on *BSD.

This commit is contained in:
Guus Sliepen 2017-04-17 13:54:02 +02:00
parent db80dbbac9
commit a144147319
4 changed files with 33 additions and 36 deletions

View file

@ -5,4 +5,6 @@
# Just test whether the executables work
$tincd --help
$tinc --help
$sptps_test --help
if [ -e $sptps_test ]; then
$sptps_test --help
fi

View file

@ -2,6 +2,10 @@
. ./testlib.sh
# Skip this test if we did not compile sptps_test
test -e $sptps_test || exit 77
# Generate keys
mkdir -p $d1

View file

@ -9,18 +9,10 @@ sptps_keypair=../src/sptps_keypair
# Test directories
case "$_" in
/*)
d1=$_.1
d2=$_.2
d3=$_.3
;;
*)
d1=$PWD/$_.1
d2=$PWD/$_.2
d3=$PWD/$_.3
;;
esac
scriptname=`basename $0`
d1=$PWD/$scriptname.1
d2=$PWD/$scriptname.2
d3=$PWD/$scriptname.3
# Default arguments for both tinc and tincd