google.test 408 B

12345678910111213141516171819
  1. #!/bin/sh
  2. # google.test
  3. server=www.google.com
  4. [ ! -x ./examples/client/client ] && echo -e "\n\nClient doesn't exist" && exit 1
  5. # is our desired server there?
  6. ./scripts/ping.test $server 2
  7. RESULT=$?
  8. [ $RESULT -ne 0 ] && exit 0
  9. # client test against the server
  10. ./examples/client/client -X -C -h $server -p 443 -g -d
  11. RESULT=$?
  12. [ $RESULT -ne 0 ] && echo -e "\n\nClient connection failed" && exit 1
  13. exit 0