diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-10-25 15:02:29 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-10-25 15:02:29 +0000 |
commit | a3840acef308e54efa2a33180d47a0772c12919b (patch) | |
tree | 308ee9b479b033785eb58e5d6ab382107d67cf22 /src/dns | |
parent | 9bca5b6b3e67ecffad94986b775258c474f2cbaf (diff) | |
download | gnunet-a3840acef308e54efa2a33180d47a0772c12919b.tar.gz gnunet-a3840acef308e54efa2a33180d47a0772c12919b.zip |
-check that which succeeded
Diffstat (limited to 'src/dns')
-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." |