diff options
-rwxr-xr-x | src/dns/test_gnunet_dns.sh | 9 |
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 |
8 | fi | 8 | fi |
9 | if ! which sudo > /dev/null | ||
10 | then | ||
11 | echo "This test requires sudo. Skipping." | ||
12 | fi | ||
9 | if [ ! -x `which sudo` ] | 13 | if [ ! -x `which sudo` ] |
10 | then | 14 | then |
11 | echo "This test requires sudo. Skipping." | 15 | echo "This test requires sudo. Skipping." |
12 | exit 0 | 16 | exit 0 |
13 | fi | 17 | fi |
18 | if ! which nslookup | ||
19 | then | ||
20 | echo "This test requires nslookup. Skipping." | ||
21 | exit 0 | ||
22 | fi | ||
14 | if [ ! -x `which nslookup` ] | 23 | if [ ! -x `which nslookup` ] |
15 | then | 24 | then |
16 | echo "This test requires nslookup. Skipping." | 25 | echo "This test requires nslookup. Skipping." |