5 # Skip this test if we did not compile sptps_test
7 test -e $sptps_test || exit 77
13 $sptps_keypair $d1/server.priv $d1/server.pub
14 $sptps_keypair $d1/client.priv $d1/client.pub
16 # Test transfer of a simple file.
18 (sleep 1; $sptps_test -4 -q $d1/client.priv $d1/server.pub localhost 32750 <../README) &
19 $sptps_test -4 $d1/server.priv $d1/client.pub 32750 >$d1/out1
20 cmp $d1/out1 ../README
22 $sptps_test -4 -q $d1/server.priv $d1/client.pub 32750 <../NEWS &
24 $sptps_test -4 $d1/client.priv $d1/server.pub localhost 32750 > $d1/out2
29 $sptps_test -4 -dq $d1/server.priv $d1/client.pub 32750 <../COPYING &
31 sleep 1 | $sptps_test -4 -dq $d1/client.priv $d1/server.pub localhost 32750 >$d1/out3
32 cmp $d1/out3 ../COPYING