google.test 445 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. ping -c 2 $server
  7. RESULT=$?
  8. [ $RESULT -ne 0 ] && echo -e "\n\nCouldn't find $server, skipping" && 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