From: Martin Schanzenbach Date: Sun, 20 Oct 2013 11:42:18 +0000 (+0000) Subject: -ignore X-Git-Tag: initial-import-from-subversion-38251~6399 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d50cee784c332b5d950344f825fc9d1b3b78dbc0;p=oweals%2Fgnunet.git -ignore --- diff --git a/src/gns/test_gns_lookup.conf b/src/gns/test_gns_lookup.conf index 17224fdf3..89007c279 100644 --- a/src/gns/test_gns_lookup.conf +++ b/src/gns/test_gns_lookup.conf @@ -19,4 +19,4 @@ MAX_PARALLEL_BACKGROUND_QUERIES = 10 DEFAULT_LOOKUP_TIMEOUT = 15 s RECORD_PUT_INTERVAL = 1 h ZONE_PUBLISH_TIME_WINDOW = 1 h - +DNS_ROOT=6KT43HD94T0C7R43JSE1U5G982BOHT9RCENEV7HT1207APDBQIT5RLLK2LCSC0PL2ICNRFPPQ834TIVOKK421TP1T1NNUKG43OHKPV8 diff --git a/src/gns/test_gns_lookup.sh b/src/gns/test_gns_lookup.sh index 85cc1f511..f90fb7364 100755 --- a/src/gns/test_gns_lookup.sh +++ b/src/gns/test_gns_lookup.sh @@ -3,26 +3,14 @@ trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` which timeout &> /dev/null && DO_TIMEOUT="timeout 5" TEST_IP="127.0.0.1" -TEST_IP6="dead::beef" gnunet-arm -s -c test_gns_lookup.conf gnunet-identity -C testego -c test_gns_lookup.conf gnunet-namestore -p -z testego -a -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf -gnunet-namestore -p -z testego -a -n www -t AAAA -V $TEST_IP6 -e never -c test_gns_lookup.conf RES_IP=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.gnu -t A -c test_gns_lookup.conf` -RES_IP6=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.gnu -t AAAA -c test_gns_lookup.conf` gnunet-namestore -z testego -d -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf -gnunet-namestore -z testego -d -n www -t AAAA -V $TEST_IP6 -e never -c test_gns_lookup.conf gnunet-identity -D testego -c test_gns_lookup.conf gnunet-arm -e -c test_gns_lookup.conf -if [ "$RES_IP6" == "$TEST_IP6" ] -then - echo "PASS: Resolved correct IPv6 address, got $RES_IP6" -else - echo "FAIL: Failed to resolve to proper IP, got $RES_IP6." - exit 1 -fi - if [ "$RES_IP" == "$TEST_IP" ] then echo "PASS: Resolved correct IP address, got $RES_IP"