aboutsummaryrefslogtreecommitdiff
path: root/src/dns/test_gnunet_dns.sh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-10-24 15:38:12 +0000
committerChristian Grothoff <christian@grothoff.org>2012-10-24 15:38:12 +0000
commit035c4a1206ffcede71e9211ecbb588e71041ada2 (patch)
tree7ef87e7057cc73b8937bd59fd0a39e9a3dbd8471 /src/dns/test_gnunet_dns.sh
parentdd57878e27d53066bd63b2e03d495d627acc871d (diff)
downloadgnunet-035c4a1206ffcede71e9211ecbb588e71041ada2.tar.gz
gnunet-035c4a1206ffcede71e9211ecbb588e71041ada2.zip
-check for sudo, nslookup
Diffstat (limited to 'src/dns/test_gnunet_dns.sh')
-rwxr-xr-xsrc/dns/test_gnunet_dns.sh10
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
8fi 8fi
9if [ ! -x `which sudo` ]
10then
11 echo "This test requires sudo. Skipping."
12 exit 0
13fi
14if [ ! -x `which nslookup` ]
15then
16 echo "This test requires nslookup. Skipping."
17 exit 0
18fi
9export PATH=".:$PATH" 19export PATH=".:$PATH"
10gnunet-service-dns -c dns.conf & 20gnunet-service-dns -c dns.conf &
11gnunet-dns-redirector -c dns.conf -4 127.0.0.1 & 21gnunet-dns-redirector -c dns.conf -4 127.0.0.1 &