aboutsummaryrefslogtreecommitdiff
path: root/src/gns/test_gns_rel_expiration.sh
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2013-10-18 11:50:24 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2013-10-18 11:50:24 +0000
commitfe41d052396d6d63c0ad3ff10852f3289418b0db (patch)
treeae91ddb5baeaec773f7c5109a5a8d20adbd64a4b /src/gns/test_gns_rel_expiration.sh
parent7eb7f61118f27279daf2fcd4663e0d3c93195f85 (diff)
downloadgnunet-fe41d052396d6d63c0ad3ff10852f3289418b0db.tar.gz
gnunet-fe41d052396d6d63c0ad3ff10852f3289418b0db.zip
-add test for resolving refreshed record, fails
Diffstat (limited to 'src/gns/test_gns_rel_expiration.sh')
-rwxr-xr-xsrc/gns/test_gns_rel_expiration.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/gns/test_gns_rel_expiration.sh b/src/gns/test_gns_rel_expiration.sh
index c52262ded..099410c3e 100755
--- a/src/gns/test_gns_rel_expiration.sh
+++ b/src/gns/test_gns_rel_expiration.sh
@@ -10,9 +10,10 @@ DELEGATED_PKEY=$(gnunet-identity -d -c test_gns_lookup.conf | grep delegatedego
10gnunet-namestore -p -z testego -a -n b -t PKEY -V $DELEGATED_PKEY -e never -c test_gns_lookup.conf 10gnunet-namestore -p -z testego -a -n b -t PKEY -V $DELEGATED_PKEY -e never -c test_gns_lookup.conf
11gnunet-namestore -p -z delegatedego -a -n www -t A -V $TEST_IP -e '2 s' -c test_gns_lookup.conf 11gnunet-namestore -p -z delegatedego -a -n www -t A -V $TEST_IP -e '2 s' -c test_gns_lookup.conf
12gnunet-arm -i gns -c test_gns_lookup.conf 12gnunet-arm -i gns -c test_gns_lookup.conf
13sleep 1 13sleep 4
14gnunet-namestore -z delegatedego -d -n www -t A -V $TEST_IP -e '2 s' -c test_gns_lookup.conf 14gnunet-namestore -z delegatedego -d -n www -t A -V $TEST_IP -e '2 s' -c test_gns_lookup.conf
15sleep 8 15RES_IP=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.b.gnu -t A -c test_gns_lookup.conf`
16sleep 4
16RES_IP_EXP=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.b.gnu -t A -c test_gns_lookup.conf` 17RES_IP_EXP=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.b.gnu -t A -c test_gns_lookup.conf`
17gnunet-namestore -z testego -d -n b -t PKEY -V $DELEGATED_PKEY -e never -c test_gns_lookup.conf 18gnunet-namestore -z testego -d -n b -t PKEY -V $DELEGATED_PKEY -e never -c test_gns_lookup.conf
18gnunet-identity -D testego -c test_gns_lookup.conf 19gnunet-identity -D testego -c test_gns_lookup.conf
@@ -24,3 +25,11 @@ then
24 echo "Failed to properly expire IP, got $RES_IP_EXP." 25 echo "Failed to properly expire IP, got $RES_IP_EXP."
25 exit 1 26 exit 1
26fi 27fi
28
29if [ "$RES_IP" == "$TEST_IP" ]
30then
31 exit 0
32else
33 echo "Failed to properly resolve IP, got $RES_IP."
34 exit 1
35fi