Fix tests on *BSD.
This commit is contained in:
parent
db80dbbac9
commit
a144147319
4 changed files with 33 additions and 36 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue