From a3840acef308e54efa2a33180d47a0772c12919b Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 25 Oct 2012 15:02:29 +0000 Subject: -check that which succeeded --- src/dns/test_gnunet_dns.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/dns') 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 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." +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." -- cgit v1.2.3