Blame tests/0_common/30_dns_works.sh
|
Karanbir Singh |
43deec |
#!/bin/sh
|
|
Karanbir Singh |
43deec |
|
|
Karanbir Singh |
43deec |
echo 'Test to see if dns works'
|
|
Karanbir Singh |
43deec |
|
|
Karanbir Singh |
43deec |
# test
|
|
Karanbir Singh |
43deec |
# its important we dont hit a dns record with a wildcard like centos.org
|
|
Karanbir Singh |
43deec |
ping -c 1 www.google.com > /dev/null 2>&1
|
|
Karanbir Singh |
43deec |
if [ $? -eq 0 ]; then
|
|
Karanbir Singh |
43deec |
echo ' PASS'
|
|
Karanbir Singh |
43deec |
else
|
|
Karanbir Singh |
43deec |
echo ' Fail'
|
|
Karanbir Singh |
43deec |
exit 1
|
|
Karanbir Singh |
43deec |
fi
|
|
Karanbir Singh |
43deec |
|
|
Karanbir Singh |
43deec |
|
|
Karanbir Singh |
43deec |
# implied results:
|
|
Karanbir Singh |
43deec |
# - network works
|
|
Karanbir Singh |
43deec |
# - default route is really routeable
|
|
Karanbir Singh |
43deec |
# - atleast one network link on the machine is working
|
|
Karanbir Singh |
43deec |
# - kernel' ip stack is functional
|
|
Karanbir Singh |
43deec |
|
|
Karanbir Singh |
43deec |
|