aboutsummaryrefslogtreecommitdiff
path: root/src/gns/test_gns_zkey_lookup.sh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-11-05 20:52:02 +0000
committerChristian Grothoff <christian@grothoff.org>2013-11-05 20:52:02 +0000
commitf416ed5cff91ff66dadfb4797562ec5c5a0adc21 (patch)
treef2eec24ae277aba0163d4c01b464defaa4ba7d93 /src/gns/test_gns_zkey_lookup.sh
parentd6dc95fdf0a795338f6dacb0d8141e3970924dc9 (diff)
downloadgnunet-f416ed5cff91ff66dadfb4797562ec5c5a0adc21.tar.gz
gnunet-f416ed5cff91ff66dadfb4797562ec5c5a0adc21.zip
-fixing zkey resolution
Diffstat (limited to 'src/gns/test_gns_zkey_lookup.sh')
-rwxr-xr-xsrc/gns/test_gns_zkey_lookup.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gns/test_gns_zkey_lookup.sh b/src/gns/test_gns_zkey_lookup.sh
index dbf4f1f12..79f5908a2 100755
--- a/src/gns/test_gns_zkey_lookup.sh
+++ b/src/gns/test_gns_zkey_lookup.sh
@@ -10,7 +10,7 @@ DELEGATED_PKEY=$(gnunet-identity -d -c test_gns_lookup.conf | grep delegatedego
10gnunet-identity -C testego -c test_gns_lookup.conf 10gnunet-identity -C testego -c test_gns_lookup.conf
11gnunet-namestore -p -z testego -a -n b -t PKEY -V $DELEGATED_PKEY -e never -c test_gns_lookup.conf 11gnunet-namestore -p -z testego -a -n b -t PKEY -V $DELEGATED_PKEY -e never -c test_gns_lookup.conf
12gnunet-namestore -p -z delegatedego -a -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf 12gnunet-namestore -p -z delegatedego -a -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf
13RES_IP=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.$DELEGATED_PKEY'.zkey' -t A -c test_gns_lookup.conf` 13RES_IP=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.${DELEGATED_PKEY}.zkey -t A -c test_gns_lookup.conf`
14gnunet-namestore -z testego -d -n b -t PKEY -V $DELEGATED_PKEY -e never -c test_gns_lookup.conf 14gnunet-namestore -z testego -d -n b -t PKEY -V $DELEGATED_PKEY -e never -c test_gns_lookup.conf
15gnunet-namestore -z delegatedego -d -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf 15gnunet-namestore -z delegatedego -d -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf
16gnunet-arm -e -c test_gns_lookup.conf 16gnunet-arm -e -c test_gns_lookup.conf
@@ -19,6 +19,6 @@ if [ "$RES_IP" == "$TEST_IP" ]
19then 19then
20 exit 0 20 exit 0
21else 21else
22 echo "Failed to resolve to proper IP, got $RES_IP." 22 echo "Failed to resolve to proper IP, got $RES_IP, wanted $TEST_IP."
23 exit 1 23 exit 1
24fi 24fi