aboutsummaryrefslogtreecommitdiff
path: root/src/gns/test_gns_soa_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_soa_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_soa_lookup.sh')
-rwxr-xr-xsrc/gns/test_gns_soa_lookup.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gns/test_gns_soa_lookup.sh b/src/gns/test_gns_soa_lookup.sh
index 0709bb139..526093c71 100755
--- a/src/gns/test_gns_soa_lookup.sh
+++ b/src/gns/test_gns_soa_lookup.sh
@@ -2,9 +2,17 @@
2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT 2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
3rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 3rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f`
4TEST_DOMAIN="homepage.gnu" 4TEST_DOMAIN="homepage.gnu"
5# some public DNS resolver we can use
5TEST_IP_GNS2DNS="184.172.157.218" 6TEST_IP_GNS2DNS="184.172.157.218"
6TEST_RECORD_NAME="homepage" 7TEST_RECORD_NAME="homepage"
7TEST_RECORD_GNS2DNS="gnunet.org" 8TEST_RECORD_GNS2DNS="gnunet.org"
9
10if ! nslookup $TEST_RECORD_GNS2DNS $TEST_IP_GNS2DNS &> /dev/null
11then
12 echo "Cannot reach DNS, skipping test"
13 exit 0
14fi
15
8gnunet-arm -s -c test_gns_lookup.conf 16gnunet-arm -s -c test_gns_lookup.conf
9gnunet-identity -C testego -c test_gns_lookup.conf 17gnunet-identity -C testego -c test_gns_lookup.conf
10gnunet-namestore -p -z testego -a -n $TEST_RECORD_NAME -t GNS2DNS -V ${TEST_RECORD_GNS2DNS}@${TEST_IP_GNS2DNS} -e never -c test_gns_lookup.conf 18gnunet-namestore -p -z testego -a -n $TEST_RECORD_NAME -t GNS2DNS -V ${TEST_RECORD_GNS2DNS}@${TEST_IP_GNS2DNS} -e never -c test_gns_lookup.conf