diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-10-24 15:38:12 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-10-24 15:38:12 +0000 |
commit | 035c4a1206ffcede71e9211ecbb588e71041ada2 (patch) | |
tree | 7ef87e7057cc73b8937bd59fd0a39e9a3dbd8471 /src/dns/test_gnunet_dns.sh | |
parent | dd57878e27d53066bd63b2e03d495d627acc871d (diff) | |
download | gnunet-035c4a1206ffcede71e9211ecbb588e71041ada2.tar.gz gnunet-035c4a1206ffcede71e9211ecbb588e71041ada2.zip |
-check for sudo, nslookup
Diffstat (limited to 'src/dns/test_gnunet_dns.sh')
-rwxr-xr-x | src/dns/test_gnunet_dns.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/dns/test_gnunet_dns.sh b/src/dns/test_gnunet_dns.sh index c60b94c19..98842e95e 100755 --- a/src/dns/test_gnunet_dns.sh +++ b/src/dns/test_gnunet_dns.sh | |||
@@ -6,6 +6,16 @@ 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 [ ! -x `which sudo` ] | ||
10 | then | ||
11 | echo "This test requires sudo. Skipping." | ||
12 | exit 0 | ||
13 | fi | ||
14 | if [ ! -x `which nslookup` ] | ||
15 | then | ||
16 | echo "This test requires nslookup. Skipping." | ||
17 | exit 0 | ||
18 | fi | ||
9 | export PATH=".:$PATH" | 19 | export PATH=".:$PATH" |
10 | gnunet-service-dns -c dns.conf & | 20 | gnunet-service-dns -c dns.conf & |
11 | gnunet-dns-redirector -c dns.conf -4 127.0.0.1 & | 21 | gnunet-dns-redirector -c dns.conf -4 127.0.0.1 & |