docu
[oweals/gnunet.git] / src / dns / test_gnunet_dns.sh
index 98842e95eda1692fd8a7e6b87411fab3544a962a..33dfd6cfcb8e0089a2a96b0d59863c105b9492c8 100755 (executable)
@@ -6,11 +6,21 @@ then
   echo "This test only works if run as root.  Skipping."
   exit 0
 fi
+if ! which sudo > /dev/null 
+then
+  echo "This test requires sudo.  Skipping."
+  exit 0
+fi
 if [ ! -x `which sudo` ]
 then
   echo "This test requires sudo.  Skipping."
   exit 0
 fi
+if ! which nslookup
+then 
+  echo "This test requires nslookup.  Skipping."
+  exit 0
+fi
 if [ ! -x `which nslookup` ]
 then
   echo "This test requires nslookup.  Skipping."