diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-11-03 22:56:54 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-11-03 22:56:54 +0000 |
commit | a659ffec52f71dd87a58a54f100bfed407a34824 (patch) | |
tree | a358a5b0b819bba92748ba6bc8b7b7ddcbc566c5 /src/dns | |
parent | d5bcc06e5c6bff2a33b31011d0c1b75d253a4a2f (diff) | |
download | gnunet-a659ffec52f71dd87a58a54f100bfed407a34824.tar.gz gnunet-a659ffec52f71dd87a58a54f100bfed407a34824.zip |
-properly say if test was skipped
Diffstat (limited to 'src/dns')
-rwxr-xr-x | src/dns/test_gnunet_dns.sh | 12 |
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` | |||
4 | if [ "$ME" != "root" ] | 4 | if [ "$ME" != "root" ] |
5 | then | 5 | 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 77 |
8 | fi | 8 | fi |
9 | if ! which sudo > /dev/null | 9 | if ! which sudo > /dev/null |
10 | then | 10 | then |
11 | echo "This test requires sudo. Skipping." | 11 | echo "This test requires sudo. Skipping." |
12 | exit 0 | 12 | exit 77 |
13 | fi | 13 | fi |
14 | if [ ! -x `which sudo` ] | 14 | if [ ! -x `which sudo` ] |
15 | then | 15 | then |
16 | echo "This test requires sudo. Skipping." | 16 | echo "This test requires sudo. Skipping." |
17 | exit 0 | 17 | exit 77 |
18 | fi | 18 | fi |
19 | if ! which nslookup > /dev/null | 19 | if ! which nslookup > /dev/null |
20 | then | 20 | then |
21 | echo "This test requires nslookup. Skipping." | 21 | echo "This test requires nslookup. Skipping." |
22 | exit 0 | 22 | exit 77 |
23 | fi | 23 | fi |
24 | if [ ! -x `which nslookup` ] | 24 | if [ ! -x `which nslookup` ] |
25 | then | 25 | then |
26 | echo "This test requires nslookup. Skipping." | 26 | echo "This test requires nslookup. Skipping." |
27 | exit 0 | 27 | exit 77 |
28 | fi | 28 | fi |
29 | if ! iptables -t mangle --list &> /dev/null | 29 | if ! iptables -t mangle --list &> /dev/null |
30 | then | 30 | then |
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 |
33 | fi | 33 | fi |
34 | 34 | ||
35 | export PATH=".:$PATH" | 35 | export PATH=".:$PATH" |