diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2013-10-18 11:50:24 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2013-10-18 11:50:24 +0000 |
commit | fe41d052396d6d63c0ad3ff10852f3289418b0db (patch) | |
tree | ae91ddb5baeaec773f7c5109a5a8d20adbd64a4b /src | |
parent | 7eb7f61118f27279daf2fcd4663e0d3c93195f85 (diff) | |
download | gnunet-fe41d052396d6d63c0ad3ff10852f3289418b0db.tar.gz gnunet-fe41d052396d6d63c0ad3ff10852f3289418b0db.zip |
-add test for resolving refreshed record, fails
Diffstat (limited to 'src')
-rwxr-xr-x | src/gns/test_gns_rel_expiration.sh | 13 |
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 | |||
10 | gnunet-namestore -p -z testego -a -n b -t PKEY -V $DELEGATED_PKEY -e never -c test_gns_lookup.conf | 10 | gnunet-namestore -p -z testego -a -n b -t PKEY -V $DELEGATED_PKEY -e never -c test_gns_lookup.conf |
11 | gnunet-namestore -p -z delegatedego -a -n www -t A -V $TEST_IP -e '2 s' -c test_gns_lookup.conf | 11 | gnunet-namestore -p -z delegatedego -a -n www -t A -V $TEST_IP -e '2 s' -c test_gns_lookup.conf |
12 | gnunet-arm -i gns -c test_gns_lookup.conf | 12 | gnunet-arm -i gns -c test_gns_lookup.conf |
13 | sleep 1 | 13 | sleep 4 |
14 | gnunet-namestore -z delegatedego -d -n www -t A -V $TEST_IP -e '2 s' -c test_gns_lookup.conf | 14 | gnunet-namestore -z delegatedego -d -n www -t A -V $TEST_IP -e '2 s' -c test_gns_lookup.conf |
15 | sleep 8 | 15 | RES_IP=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.b.gnu -t A -c test_gns_lookup.conf` |
16 | sleep 4 | ||
16 | RES_IP_EXP=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.b.gnu -t A -c test_gns_lookup.conf` | 17 | RES_IP_EXP=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.b.gnu -t A -c test_gns_lookup.conf` |
17 | gnunet-namestore -z testego -d -n b -t PKEY -V $DELEGATED_PKEY -e never -c test_gns_lookup.conf | 18 | gnunet-namestore -z testego -d -n b -t PKEY -V $DELEGATED_PKEY -e never -c test_gns_lookup.conf |
18 | gnunet-identity -D testego -c test_gns_lookup.conf | 19 | gnunet-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 |
26 | fi | 27 | fi |
28 | |||
29 | if [ "$RES_IP" == "$TEST_IP" ] | ||
30 | then | ||
31 | exit 0 | ||
32 | else | ||
33 | echo "Failed to properly resolve IP, got $RES_IP." | ||
34 | exit 1 | ||
35 | fi | ||