2015-06-11 00:11:36 +03:00
|
|
|
#!/bin/sh
|
2014-03-20 08:20:43 +04:00
|
|
|
|
2015-06-09 18:51:55 +03:00
|
|
|
# google.test
|
|
|
|
|
|
|
|
server=www.google.com
|
2014-03-20 08:20:43 +04:00
|
|
|
|
|
|
|
[ ! -x ./examples/client/client ] && echo -e "\n\nClient doesn't exist" && exit 1
|
|
|
|
|
|
|
|
# is our desired server there?
|
2016-04-02 01:45:53 +03:00
|
|
|
./scripts/ping.test $server 2
|
2016-04-14 23:42:01 +03:00
|
|
|
RESULT=$?
|
|
|
|
[ $RESULT -ne 0 ] && exit 0
|
2014-03-20 08:20:43 +04:00
|
|
|
|
|
|
|
# client test against the server
|
2015-06-09 18:51:55 +03:00
|
|
|
./examples/client/client -X -C -h $server -p 443 -g -d
|
2014-03-20 08:20:43 +04:00
|
|
|
RESULT=$?
|
|
|
|
[ $RESULT -ne 0 ] && echo -e "\n\nClient connection failed" && exit 1
|
|
|
|
|
|
|
|
exit 0
|