X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=test%2Fsptps-basic.test;h=b6d081fb8ef1a5246691f5d316e3f319a0e0a5b9;hb=6c0584c55b99dd9814fed5c13536d831b3e5317e;hp=9f86c8cd4d38db2051d682ed467c318a7203d83b;hpb=843990d8df0c060db9b64e170996e9d49c8c921d;p=tinc diff --git a/test/sptps-basic.test b/test/sptps-basic.test index 9f86c8cd..b6d081fb 100755 --- a/test/sptps-basic.test +++ b/test/sptps-basic.test @@ -1,10 +1,10 @@ #!/bin/sh -. ./testlib.sh +. "${0%/*}/testlib.sh" # Skip this test if we did not compile sptps_test -test -e $sptps_test || exit 77 +test -e $sptps_test -a -e $sptps_keypair || exit 77 # Generate keys @@ -15,18 +15,18 @@ $sptps_keypair $d1/client.priv $d1/client.pub # Test transfer of a simple file. -(sleep 1; $sptps_test -4 -q $d1/client.priv $d1/server.pub localhost 32750 <../README) & +(sleep 1; $sptps_test -4 -q $d1/client.priv $d1/server.pub localhost 32750 $d1/out1 -cmp $d1/out1 ../README +cmp $d1/out1 Makefile -$sptps_test -4 -q $d1/server.priv $d1/client.pub 32750 <../NEWS & +$sptps_test -4 -q $d1/server.priv $d1/client.pub 32750 $d1/out2 -cmp $d1/out2 ../NEWS +cmp $d1/out2 Makefile # Datagram mode -$sptps_test -4 -dq $d1/server.priv $d1/client.pub 32750 <../COPYING & +$sptps_test -4 -dq $d1/server.priv $d1/client.pub 32750 $d1/out3 -cmp $d1/out3 ../COPYING +cmp $d1/out3 Makefile