aboutsummaryrefslogtreecommitdiff
path: root/src/dns
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-10-25 15:02:29 +0000
committerChristian Grothoff <christian@grothoff.org>2012-10-25 15:02:29 +0000
commita3840acef308e54efa2a33180d47a0772c12919b (patch)
tree308ee9b479b033785eb58e5d6ab382107d67cf22 /src/dns
parent9bca5b6b3e67ecffad94986b775258c474f2cbaf (diff)
downloadgnunet-a3840acef308e54efa2a33180d47a0772c12919b.tar.gz
gnunet-a3840acef308e54efa2a33180d47a0772c12919b.zip
-check that which succeeded
Diffstat (limited to 'src/dns')
-rwxr-xr-xsrc/dns/test_gnunet_dns.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/dns/test_gnunet_dns.sh b/src/dns/test_gnunet_dns.sh
index 98842e95e..c816801e9 100755
--- a/src/dns/test_gnunet_dns.sh
+++ b/src/dns/test_gnunet_dns.sh
@@ -6,11 +6,20 @@ then
6 echo "This test only works if run as root. Skipping." 6 echo "This test only works if run as root. Skipping."
7 exit 0 7 exit 0
8fi 8fi
9if ! which sudo > /dev/null
10then
11 echo "This test requires sudo. Skipping."
12fi
9if [ ! -x `which sudo` ] 13if [ ! -x `which sudo` ]
10then 14then
11 echo "This test requires sudo. Skipping." 15 echo "This test requires sudo. Skipping."
12 exit 0 16 exit 0
13fi 17fi
18if ! which nslookup
19then
20 echo "This test requires nslookup. Skipping."
21 exit 0
22fi
14if [ ! -x `which nslookup` ] 23if [ ! -x `which nslookup` ]
15then 24then
16 echo "This test requires nslookup. Skipping." 25 echo "This test requires nslookup. Skipping."