aboutsummaryrefslogtreecommitdiff
path: root/src/gns/test_gns_gns2dns_lookup.sh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-11-06 21:06:17 +0000
committerChristian Grothoff <christian@grothoff.org>2013-11-06 21:06:17 +0000
commit50c0d1710d77f3224c32dac21d5d01cc3c2122ec (patch)
tree0c959dac2f54e49a76d838438c409a4bc5d42802 /src/gns/test_gns_gns2dns_lookup.sh
parente7d53de20be5b3ce852bfac50e66b978e46f1d2d (diff)
downloadgnunet-50c0d1710d77f3224c32dac21d5d01cc3c2122ec.tar.gz
gnunet-50c0d1710d77f3224c32dac21d5d01cc3c2122ec.zip
-allow tests to pass if system is offline
Diffstat (limited to 'src/gns/test_gns_gns2dns_lookup.sh')
-rwxr-xr-xsrc/gns/test_gns_gns2dns_lookup.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gns/test_gns_gns2dns_lookup.sh b/src/gns/test_gns_gns2dns_lookup.sh
index fe5e2132d..5bd33221a 100755
--- a/src/gns/test_gns_gns2dns_lookup.sh
+++ b/src/gns/test_gns_gns2dns_lookup.sh
@@ -17,6 +17,12 @@ TEST_DOMAIN="www.${TEST_RECORD_NAME}.gnu"
17TEST_DOMAIN_ALT="${TEST_RECORD_NAME}.gnu" 17TEST_DOMAIN_ALT="${TEST_RECORD_NAME}.gnu"
18TEST_DOMAIN_ALT2="uk.${TEST_RECORD_NAME}.gnu" 18TEST_DOMAIN_ALT2="uk.${TEST_RECORD_NAME}.gnu"
19 19
20if ! nslookup gnunet.org $TEST_IP_GNS2DNS &> /dev/null
21then
22 echo "Cannot reach DNS, skipping test"
23 exit 0
24fi
25
20# helper record for pointing to the DNS resolver 26# helper record for pointing to the DNS resolver
21TEST_RESOLVER_LABEL="resolver" 27TEST_RESOLVER_LABEL="resolver"
22# GNS2DNS record value: delegate to DNS domain 'gnunet.org' 28# GNS2DNS record value: delegate to DNS domain 'gnunet.org'