tests: separated the address ranges on full and unix tests and added IPv6 addresses

This commit is contained in:
Nikos Mavrogiannopoulos
2014-12-29 11:56:32 +02:00
parent 02734d8f54
commit ecb59fdf3e
3 changed files with 11 additions and 11 deletions

View File

@@ -94,14 +94,14 @@ rm -f pass.tmp
sleep 5
# The client IP depends on the username so it shouldn't change.
ping -w 5 192.168.1.190
ping -w 5 192.168.99.190
if test $? != 0;then
kill $PID
echo "Cannot ping ocserv"
stop
fi
ping -w 5 192.168.1.190 -s 1500
ping -w 5 192.168.99.190 -s 1500
if test $? != 0;then
kill $PID
echo "Cannot ping ocserv"
@@ -115,14 +115,14 @@ printf "echo root" >>echo-admin.tmp
printf "\n" >>echo-admin.tmp
chmod 755 echo-admin.tmp
export SSH_ASKPASS="./echo-admin.tmp"
setsid ssh -T -F config.tmp root@192.168.1.190 occtl show user test >out.tmp 2>&1
setsid ssh -T -F config.tmp root@192.168.99.190 occtl show user test >out.tmp 2>&1
cat out.tmp
printf "#\!/bin/sh\n" >echo-admin.tmp
printf "echo root" >>echo-admin.tmp
printf "\n" >>echo-admin.tmp
chmod 755 echo-admin.tmp
setsid ssh -T -F config.tmp root@192.168.1.190 occtl show user test >out.tmp 2>&1
setsid ssh -T -F config.tmp root@192.168.99.190 occtl show user test >out.tmp 2>&1
cat out.tmp
rm -f echo-admin.tmp
rm -f config.tmp
@@ -140,14 +140,14 @@ rm -f out.tmp
# There is an issue in nuttcp that makes it crash under docker if
# /proc/sys/net/ipv4/tcp_adv_win_scale does not exist.
#nuttcp -T 10 -t 192.168.1.190
#nuttcp -T 10 -t 192.168.99.190
#if test $? != 0;then
# kill $PID
# echo "Cannot send to ocserv"
# stop
#fi
#nuttcp -T 10 -r 192.168.1.190
#nuttcp -T 10 -r 192.168.99.190
#if test $? != 0;then
# kill $PID
# echo "Cannot recv from ocserv"