aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-11-03 22:56:54 +0000
committerChristian Grothoff <christian@grothoff.org>2015-11-03 22:56:54 +0000
commita659ffec52f71dd87a58a54f100bfed407a34824 (patch)
treea358a5b0b819bba92748ba6bc8b7b7ddcbc566c5
parentd5bcc06e5c6bff2a33b31011d0c1b75d253a4a2f (diff)
downloadgnunet-a659ffec52f71dd87a58a54f100bfed407a34824.tar.gz
gnunet-a659ffec52f71dd87a58a54f100bfed407a34824.zip
-properly say if test was skipped
-rwxr-xr-xsrc/dns/test_gnunet_dns.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/dns/test_gnunet_dns.sh b/src/dns/test_gnunet_dns.sh
index 4fa47bb6f..ab8cca4b1 100755
--- a/src/dns/test_gnunet_dns.sh
+++ b/src/dns/test_gnunet_dns.sh
@@ -4,32 +4,32 @@ ME=`whoami`
4if [ "$ME" != "root" ] 4if [ "$ME" != "root" ]
5then 5then
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 77
8fi 8fi
9if ! which sudo > /dev/null 9if ! which sudo > /dev/null
10then 10then
11 echo "This test requires sudo. Skipping." 11 echo "This test requires sudo. Skipping."
12 exit 0 12 exit 77
13fi 13fi
14if [ ! -x `which sudo` ] 14if [ ! -x `which sudo` ]
15then 15then
16 echo "This test requires sudo. Skipping." 16 echo "This test requires sudo. Skipping."
17 exit 0 17 exit 77
18fi 18fi
19if ! which nslookup > /dev/null 19if ! which nslookup > /dev/null
20then 20then
21 echo "This test requires nslookup. Skipping." 21 echo "This test requires nslookup. Skipping."
22 exit 0 22 exit 77
23fi 23fi
24if [ ! -x `which nslookup` ] 24if [ ! -x `which nslookup` ]
25then 25then
26 echo "This test requires nslookup. Skipping." 26 echo "This test requires nslookup. Skipping."
27 exit 0 27 exit 77
28fi 28fi
29if ! iptables -t mangle --list &> /dev/null 29if ! iptables -t mangle --list &> /dev/null
30then 30then
31 echo "This test requires iptables with 'mangle' support. Skipping." 31 echo "This test requires iptables with 'mangle' support. Skipping."
32 exit 0 32 exit 77
33fi 33fi
34 34
35export PATH=".:$PATH" 35export PATH=".:$PATH"