tests: corrected full-test checks

This commit is contained in:
Nikos Mavrogiannopoulos
2015-03-16 16:00:17 +01:00
parent cbed2ac57b
commit a2e33f71a1
+4 -4
View File
@@ -54,22 +54,22 @@ if test ! -z "$QUIT_ON_INIT";then
exit 0 exit 0
fi fi
printf "test\ntestuser\n" >pass-full$TMP printf "testuser\n" >pass-full$TMP
openconnect $IP:$PORT_OCSERV -u test --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --cookieonly < pass-full$TMP openconnect $IP:$PORT_OCSERV -u test --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --cookieonly < pass-full$TMP
if test $? = 0;then if test $? = 0;then
echo "Authentication with wrong password succeeded!" echo "Authentication with wrong password succeeded!"
stop stop
fi fi
printf "test\ntest\n" >pass-full$TMP printf "test\n" >pass-full$TMP
openconnect $IP:$PORT_OCSERV -u testuser --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --cookieonly < pass-full$TMP openconnect $IP:$PORT_OCSERV -u testuser --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --cookieonly < pass-full$TMP
if test $? = 0;then if test $? = 0;then
echo "Authentication with wrong username succeeded!" echo "Authentication with wrong username succeeded!"
stop stop
fi fi
printf "test\ntest\n" >pass-full$TMP printf "test\n" >pass-full$TMP
openconnect $IP:5551 -u test --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 < pass-full$TMP & openconnect $IP:$PORT_OCSERV -u test --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 < pass-full$TMP &
PID=$! PID=$!
rm -f pass-full$TMP rm -f pass-full$TMP