aboutsummaryrefslogtreecommitdiff
path: root/src/gns
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-12-18 11:32:49 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-12-18 11:32:49 +0000
commitea8c85c55b9df1b491713b79bb221b7476949742 (patch)
tree0eb46f89dd6bd8aa650cdb546ad509a75f06b340 /src/gns
parent89750cb0d154d0c82de41ff10c70d8e8d70e0c9f (diff)
downloadgnunet-ea8c85c55b9df1b491713b79bb221b7476949742.tar.gz
gnunet-ea8c85c55b9df1b491713b79bb221b7476949742.zip
clean up test after execution
Diffstat (limited to 'src/gns')
-rwxr-xr-xsrc/gns/test_gns_cname_lookup.sh4
-rwxr-xr-xsrc/gns/test_gns_delegated_lookup.sh4
-rwxr-xr-xsrc/gns/test_gns_dht_lookup.sh1
-rwxr-xr-xsrc/gns/test_gns_gns2dns_lookup.sh4
-rwxr-xr-xsrc/gns/test_gns_ipv6_lookup.sh3
-rwxr-xr-xsrc/gns/test_gns_mx_lookup.sh3
-rwxr-xr-xsrc/gns/test_gns_nick_shorten.sh4
-rwxr-xr-xsrc/gns/test_gns_plus_lookup.sh3
-rwxr-xr-xsrc/gns/test_gns_quickupdate.sh3
-rwxr-xr-xsrc/gns/test_gns_rel_expiration.sh3
-rwxr-xr-xsrc/gns/test_gns_revocation.sh3
-rwxr-xr-xsrc/gns/test_gns_soa_lookup.sh3
-rwxr-xr-xsrc/gns/test_gns_txt_lookup.sh3
-rwxr-xr-xsrc/gns/test_gns_zkey_lookup.sh3
14 files changed, 30 insertions, 14 deletions
diff --git a/src/gns/test_gns_cname_lookup.sh b/src/gns/test_gns_cname_lookup.sh
index 538861c0e..00614f038 100755
--- a/src/gns/test_gns_cname_lookup.sh
+++ b/src/gns/test_gns_cname_lookup.sh
@@ -13,7 +13,8 @@ then
13 exit 77 13 exit 77
14fi 14fi
15 15
16rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 16rm -rf /tmp/test-gnunet-gns-peer-1/
17
17TEST_DOMAIN_PLUS="www.gnu" 18TEST_DOMAIN_PLUS="www.gnu"
18TEST_DOMAIN_DNS="www3.gnu" 19TEST_DOMAIN_DNS="www3.gnu"
19TEST_IP_PLUS="127.0.0.1" 20TEST_IP_PLUS="127.0.0.1"
@@ -40,6 +41,7 @@ gnunet-namestore -p -z testego -d -n $TEST_RECORD_NAME_PLUS -t CNAME -V $TEST_RE
40gnunet-namestore -p -z testego -d -n $TEST_RECORD_CNAME_SERVER -t A -V $TEST_IP_PLUS -e never -c test_gns_lookup.conf 41gnunet-namestore -p -z testego -d -n $TEST_RECORD_CNAME_SERVER -t A -V $TEST_IP_PLUS -e never -c test_gns_lookup.conf
41gnunet-identity -D testego -c test_gns_lookup.conf 42gnunet-identity -D testego -c test_gns_lookup.conf
42gnunet-arm -e -c test_gns_lookup.conf 43gnunet-arm -e -c test_gns_lookup.conf
44rm -rf /tmp/test-gnunet-gns-peer-1/
43 45
44if [ "$RES_CNAME_RAW" == "server.$TESTEGOZONE.zkey" ] 46if [ "$RES_CNAME_RAW" == "server.$TESTEGOZONE.zkey" ]
45then 47then
diff --git a/src/gns/test_gns_delegated_lookup.sh b/src/gns/test_gns_delegated_lookup.sh
index 7f22a70b5..fc507444f 100755
--- a/src/gns/test_gns_delegated_lookup.sh
+++ b/src/gns/test_gns_delegated_lookup.sh
@@ -14,7 +14,7 @@ then
14 exit 77 14 exit 77
15fi 15fi
16 16
17rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 17rm -rf /tmp/test-gnunet-gns-peer-1/
18 18
19TEST_IP="127.0.0.1" 19TEST_IP="127.0.0.1"
20gnunet-arm -s -c test_gns_lookup.conf 20gnunet-arm -s -c test_gns_lookup.conf
@@ -28,6 +28,8 @@ gnunet-namestore -z testego -d -n b -t PKEY -V $DELEGATED_PKEY -e never -c test
28gnunet-namestore -z delegatedego -d -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf 28gnunet-namestore -z delegatedego -d -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf
29gnunet-arm -e -c test_gns_lookup.conf 29gnunet-arm -e -c test_gns_lookup.conf
30 30
31rm -rf /tmp/test-gnunet-gns-peer-1/
32
31if [ "$RES_IP" == "$TEST_IP" ] 33if [ "$RES_IP" == "$TEST_IP" ]
32then 34then
33 exit 0 35 exit 0
diff --git a/src/gns/test_gns_dht_lookup.sh b/src/gns/test_gns_dht_lookup.sh
index 39023b077..ce19fcdde 100755
--- a/src/gns/test_gns_dht_lookup.sh
+++ b/src/gns/test_gns_dht_lookup.sh
@@ -27,6 +27,7 @@ gnunet-namestore -z delegatedego -d -n www -t A -V $TEST_IP -e never -c test_gn
27RES_IP=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.b.gnu -t A -c test_gns_lookup.conf` 27RES_IP=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.b.gnu -t A -c test_gns_lookup.conf`
28gnunet-namestore -z testego -d -n b -t PKEY -V $DELEGATED_PKEY -e never -c test_gns_lookup.conf 28gnunet-namestore -z testego -d -n b -t PKEY -V $DELEGATED_PKEY -e never -c test_gns_lookup.conf
29gnunet-arm -e -c test_gns_lookup.conf 29gnunet-arm -e -c test_gns_lookup.conf
30rm -rf /tmp/test-gnunet-gns-peer-1/
30 31
31if [ "$RES_IP" == "$TEST_IP" ] 32if [ "$RES_IP" == "$TEST_IP" ]
32then 33then
diff --git a/src/gns/test_gns_gns2dns_lookup.sh b/src/gns/test_gns_gns2dns_lookup.sh
index 34ec1dc83..829161e6c 100755
--- a/src/gns/test_gns_gns2dns_lookup.sh
+++ b/src/gns/test_gns_gns2dns_lookup.sh
@@ -13,7 +13,7 @@ then
13 exit 77 13 exit 77
14fi 14fi
15 15
16rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 16rm -r rm -rf /tmp/test-gnunet-gns-peer-1/
17# IP address of 'uk.gnunet.org' 17# IP address of 'uk.gnunet.org'
18TEST_IP_ALT2="81.187.252.184" 18TEST_IP_ALT2="81.187.252.184"
19# IP address of 'www.gnunet.org' 19# IP address of 'www.gnunet.org'
@@ -64,6 +64,8 @@ gnunet-namestore -z testego -d -n $TEST_RESOLVER_LABEL -t A -V $TEST_IP_GNS2DNS
64gnunet-namestore -z testego -d -n $TEST_RECORD_NAME -t GNS2DNS -V $TEST_RECORD_GNS2DNS -e never -c test_gns_lookup.conf 64gnunet-namestore -z testego -d -n $TEST_RECORD_NAME -t GNS2DNS -V $TEST_RECORD_GNS2DNS -e never -c test_gns_lookup.conf
65gnunet-identity -D testego -c test_gns_lookup.conf 65gnunet-identity -D testego -c test_gns_lookup.conf
66gnunet-arm -e -c test_gns_lookup.conf 66gnunet-arm -e -c test_gns_lookup.conf
67rm -rf /tmp/test-gnunet-gns-peer-1/
68
67ret=0 69ret=0
68if [ "$RES_IP" == "$TEST_IP" ] 70if [ "$RES_IP" == "$TEST_IP" ]
69then 71then
diff --git a/src/gns/test_gns_ipv6_lookup.sh b/src/gns/test_gns_ipv6_lookup.sh
index 71b7585b3..6b7733ce0 100755
--- a/src/gns/test_gns_ipv6_lookup.sh
+++ b/src/gns/test_gns_ipv6_lookup.sh
@@ -13,7 +13,7 @@ then
13 exit 77 13 exit 77
14fi 14fi
15 15
16rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 16rm -r `rm -rf /tmp/test-gnunet-gns-peer-1/`
17which timeout &> /dev/null && DO_TIMEOUT="timeout 30" 17which timeout &> /dev/null && DO_TIMEOUT="timeout 30"
18TEST_IP="dead::beef" 18TEST_IP="dead::beef"
19gnunet-arm -s -c test_gns_lookup.conf 19gnunet-arm -s -c test_gns_lookup.conf
@@ -23,6 +23,7 @@ RES_IP=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.gnu -t AAAA -c test_gns_l
23gnunet-namestore -z testego -d -n www -t AAAA -V $TEST_IP -e never -c test_gns_lookup.conf 23gnunet-namestore -z testego -d -n www -t AAAA -V $TEST_IP -e never -c test_gns_lookup.conf
24gnunet-identity -D testego -c test_gns_lookup.conf 24gnunet-identity -D testego -c test_gns_lookup.conf
25gnunet-arm -e -c test_gns_lookup.conf 25gnunet-arm -e -c test_gns_lookup.conf
26rm -rf /tmp/test-gnunet-gns-peer-1/
26 27
27if [ "$RES_IP" == "$TEST_IP" ] 28if [ "$RES_IP" == "$TEST_IP" ]
28then 29then
diff --git a/src/gns/test_gns_mx_lookup.sh b/src/gns/test_gns_mx_lookup.sh
index eca7316ff..e378bd1f7 100755
--- a/src/gns/test_gns_mx_lookup.sh
+++ b/src/gns/test_gns_mx_lookup.sh
@@ -13,7 +13,7 @@ then
13 exit 77 13 exit 77
14fi 14fi
15 15
16rm -fr `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 16rm -rf /tmp/test-gnunet-gns-peer-1/
17which timeout &> /dev/null && DO_TIMEOUT="timeout 5" 17which timeout &> /dev/null && DO_TIMEOUT="timeout 5"
18 18
19TEST_MX="5,mail.gnu" 19TEST_MX="5,mail.gnu"
@@ -25,6 +25,7 @@ RES_MX=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.gnu -t MX -c test_gns_loo
25gnunet-namestore -z testego -d -n www -t MX -V "$TEST_MX" -e never -c test_gns_lookup.conf 25gnunet-namestore -z testego -d -n www -t MX -V "$TEST_MX" -e never -c test_gns_lookup.conf
26gnunet-identity -D testego -c test_gns_lookup.conf 26gnunet-identity -D testego -c test_gns_lookup.conf
27gnunet-arm -e -c test_gns_lookup.conf 27gnunet-arm -e -c test_gns_lookup.conf
28rm -rf /tmp/test-gnunet-gns-peer-1/
28 29
29if [ "$RES_MX" == "$TEST_MX" ] 30if [ "$RES_MX" == "$TEST_MX" ]
30then 31then
diff --git a/src/gns/test_gns_nick_shorten.sh b/src/gns/test_gns_nick_shorten.sh
index fef80b4d0..68ee57a2b 100755
--- a/src/gns/test_gns_nick_shorten.sh
+++ b/src/gns/test_gns_nick_shorten.sh
@@ -21,7 +21,7 @@ fi
21 21
22# Deleting home directory from previous runs 22# Deleting home directory from previous runs
23TEST_CONFIG="test_gns_nick_shorten.conf " 23TEST_CONFIG="test_gns_nick_shorten.conf "
24rm -rf `gnunet-config -c test_gns_nick_shorten.conf -s PATHS -o GNUNET_HOME -f` 24rm -rf /tmp/test-gnunet-gns-peer-1/
25TEST_IP="127.0.0.1" 25TEST_IP="127.0.0.1"
26TEST_IP="127.0.0.2" 26TEST_IP="127.0.0.2"
27TEST_NICK_EGO="ego" 27TEST_NICK_EGO="ego"
@@ -118,7 +118,7 @@ gnunet-identity -D -z delegatedego -c $TEST_CONFIG
118gnunet-identity -D -z short-zone -c $TEST_CONFIG 118gnunet-identity -D -z short-zone -c $TEST_CONFIG
119 119
120gnunet-arm -e -c test_gns_nick_shorten.conf 120gnunet-arm -e -c test_gns_nick_shorten.conf
121rm -rf `gnunet-config -c test_gns_nick_shorten.conf -s PATHS -o GNUNET_HOME -f` 121rm -rf /tmp/test-gnunet-gns-peer-1/
122 122
123exit $RES 123exit $RES
124 124
diff --git a/src/gns/test_gns_plus_lookup.sh b/src/gns/test_gns_plus_lookup.sh
index 91865b346..0cb687dfe 100755
--- a/src/gns/test_gns_plus_lookup.sh
+++ b/src/gns/test_gns_plus_lookup.sh
@@ -14,7 +14,7 @@ then
14fi 14fi
15 15
16which timeout &> /dev/null && DO_TIMEOUT="timeout 5" 16which timeout &> /dev/null && DO_TIMEOUT="timeout 5"
17rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 17rm -rf /tmp/test-gnunet-gns-peer-1/
18 18
19TEST_IP="127.0.0.1" 19TEST_IP="127.0.0.1"
20gnunet-arm -s -c test_gns_lookup.conf 20gnunet-arm -s -c test_gns_lookup.conf
@@ -27,6 +27,7 @@ RES_IP=`$DO_TIMEOUT gnunet-gns --raw -z testego -u b.gnu -t A -c test_gns_lookup
27gnunet-namestore -z testego -d -n b -t PKEY -V $DELEGATED_PKEY -e never -c test_gns_lookup.conf 27gnunet-namestore -z testego -d -n b -t PKEY -V $DELEGATED_PKEY -e never -c test_gns_lookup.conf
28gnunet-namestore -z delegatedego -d -n '+' -t A -V $TEST_IP -e never -c test_gns_lookup.conf 28gnunet-namestore -z delegatedego -d -n '+' -t A -V $TEST_IP -e never -c test_gns_lookup.conf
29gnunet-arm -e -c test_gns_lookup.conf 29gnunet-arm -e -c test_gns_lookup.conf
30rm -rf /tmp/test-gnunet-gns-peer-1/
30 31
31if [ "$RES_IP" == "$TEST_IP" ] 32if [ "$RES_IP" == "$TEST_IP" ]
32then 33then
diff --git a/src/gns/test_gns_quickupdate.sh b/src/gns/test_gns_quickupdate.sh
index c53eab0f6..cb3b67db2 100755
--- a/src/gns/test_gns_quickupdate.sh
+++ b/src/gns/test_gns_quickupdate.sh
@@ -13,7 +13,7 @@ then
13 exit 77 13 exit 77
14fi 14fi
15 15
16rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 16rm -rf /tmp/test-gnunet-gns-peer-1/
17which timeout &> /dev/null && DO_TIMEOUT="timeout 5" 17which timeout &> /dev/null && DO_TIMEOUT="timeout 5"
18TEST_IP="127.0.0.1" 18TEST_IP="127.0.0.1"
19gnunet-arm -s -c test_gns_lookup.conf 19gnunet-arm -s -c test_gns_lookup.conf
@@ -45,6 +45,7 @@ gnunet-namestore -z testego -d -n b -t PKEY -V $DELEGATED_PKEY -e never -c test
45gnunet-identity -D testego -c test_gns_lookup.conf 45gnunet-identity -D testego -c test_gns_lookup.conf
46gnunet-identity -D delegatedego -c test_gns_lookup.conf 46gnunet-identity -D delegatedego -c test_gns_lookup.conf
47gnunet-arm -e -c test_gns_lookup.conf 47gnunet-arm -e -c test_gns_lookup.conf
48rm -rf /tmp/test-gnunet-gns-peer-1/
48 49
49if [ "$RES_IP" == "$TEST_IP" ] 50if [ "$RES_IP" == "$TEST_IP" ]
50then 51then
diff --git a/src/gns/test_gns_rel_expiration.sh b/src/gns/test_gns_rel_expiration.sh
index 1f46d3c30..91eb45b3f 100755
--- a/src/gns/test_gns_rel_expiration.sh
+++ b/src/gns/test_gns_rel_expiration.sh
@@ -13,7 +13,7 @@ then
13 exit 77 13 exit 77
14fi 14fi
15 15
16rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 16rm -rf /tmp/test-gnunet-gns-peer-1/
17which timeout &> /dev/null && DO_TIMEOUT="timeout 5" 17which timeout &> /dev/null && DO_TIMEOUT="timeout 5"
18TEST_IP="127.0.0.1" 18TEST_IP="127.0.0.1"
19gnunet-arm -s -c test_gns_lookup.conf 19gnunet-arm -s -c test_gns_lookup.conf
@@ -33,6 +33,7 @@ gnunet-namestore -z testego -d -n b -t PKEY -V $DELEGATED_PKEY -e never -c test
33gnunet-identity -D testego -c test_gns_lookup.conf 33gnunet-identity -D testego -c test_gns_lookup.conf
34gnunet-identity -D delegatedego -c test_gns_lookup.conf 34gnunet-identity -D delegatedego -c test_gns_lookup.conf
35gnunet-arm -e -c test_gns_lookup.conf 35gnunet-arm -e -c test_gns_lookup.conf
36rm -rf /tmp/test-gnunet-gns-peer-1/
36 37
37if [ "$RES_IP_EXP" == "$TEST_IP" ] 38if [ "$RES_IP_EXP" == "$TEST_IP" ]
38then 39then
diff --git a/src/gns/test_gns_revocation.sh b/src/gns/test_gns_revocation.sh
index dd288e2d8..afb5803f5 100755
--- a/src/gns/test_gns_revocation.sh
+++ b/src/gns/test_gns_revocation.sh
@@ -14,7 +14,7 @@ then
14 exit 77 14 exit 77
15fi 15fi
16 16
17rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 17rm -rf /tmp/test-gnunet-gns-peer-1/
18 18
19TEST_IP="127.0.0.1" 19TEST_IP="127.0.0.1"
20gnunet-arm -s -c test_gns_lookup.conf 20gnunet-arm -s -c test_gns_lookup.conf
@@ -29,6 +29,7 @@ RES_IP_REV=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.b.gnu -t A -c test_gn
29gnunet-namestore -z testego -d -n b -t PKEY -V $DELEGATED_PKEY -e never -c test_gns_lookup.conf 29gnunet-namestore -z testego -d -n b -t PKEY -V $DELEGATED_PKEY -e never -c test_gns_lookup.conf
30gnunet-namestore -z delegatedego -d -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf 30gnunet-namestore -z delegatedego -d -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf
31gnunet-arm -e -c test_gns_lookup.conf 31gnunet-arm -e -c test_gns_lookup.conf
32rm -rf /tmp/test-gnunet-gns-peer-1/
32 33
33if [ "$RES_IP" != "$TEST_IP" ] 34if [ "$RES_IP" != "$TEST_IP" ]
34then 35then
diff --git a/src/gns/test_gns_soa_lookup.sh b/src/gns/test_gns_soa_lookup.sh
index 8ea44b191..6983cccba 100755
--- a/src/gns/test_gns_soa_lookup.sh
+++ b/src/gns/test_gns_soa_lookup.sh
@@ -13,7 +13,7 @@ then
13 exit 77 13 exit 77
14fi 14fi
15 15
16rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 16rm -rf /tmp/test-gnunet-gns-peer-1/
17TEST_DOMAIN="homepage.gnu" 17TEST_DOMAIN="homepage.gnu"
18# some public DNS resolver we can use 18# some public DNS resolver we can use
19TEST_IP_GNS2DNS="184.172.157.218" 19TEST_IP_GNS2DNS="184.172.157.218"
@@ -33,6 +33,7 @@ RES_SOA=$(timeout 5 gnunet-gns --raw -z testego -u $TEST_DOMAIN -t SOA -c test_g
33gnunet-namestore -z testego -d -n $TEST_RECORD_NAME -t GNS2DNS -V ${TEST_RECORD_GNS2DNS}@${TEST_IP_GNS2DNS} -e never -c test_gns_lookup.conf &> /dev/null 33gnunet-namestore -z testego -d -n $TEST_RECORD_NAME -t GNS2DNS -V ${TEST_RECORD_GNS2DNS}@${TEST_IP_GNS2DNS} -e never -c test_gns_lookup.conf &> /dev/null
34gnunet-identity -D testego -c test_gns_lookup.conf 34gnunet-identity -D testego -c test_gns_lookup.conf
35gnunet-arm -e -c test_gns_lookup.conf 35gnunet-arm -e -c test_gns_lookup.conf
36rm -rf /tmp/test-gnunet-gns-peer-1/
36 37
37if [ "x$RES_SOA" != "x" ] 38if [ "x$RES_SOA" != "x" ]
38then 39then
diff --git a/src/gns/test_gns_txt_lookup.sh b/src/gns/test_gns_txt_lookup.sh
index a025eb8be..426bf8d5a 100755
--- a/src/gns/test_gns_txt_lookup.sh
+++ b/src/gns/test_gns_txt_lookup.sh
@@ -13,7 +13,7 @@ then
13 exit 77 13 exit 77
14fi 14fi
15 15
16rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 16rm -rf /tmp/test-gnunet-gns-peer-1/
17which timeout &> /dev/null && DO_TIMEOUT="timeout 30" 17which timeout &> /dev/null && DO_TIMEOUT="timeout 30"
18TEST_TXT="GNS powered txt record data" 18TEST_TXT="GNS powered txt record data"
19gnunet-arm -s -c test_gns_lookup.conf 19gnunet-arm -s -c test_gns_lookup.conf
@@ -23,6 +23,7 @@ RES_TXT=`$DO_TIMEOUT gnunet-gns --raw -z testego -u testtxt.gnu -t TXT -c test_g
23gnunet-namestore -z testego -d -n testtxt -t TXT -V "$TEST_TXT" -e never -c test_gns_lookup.conf 23gnunet-namestore -z testego -d -n testtxt -t TXT -V "$TEST_TXT" -e never -c test_gns_lookup.conf
24gnunet-identity -D testego -c test_gns_lookup.conf 24gnunet-identity -D testego -c test_gns_lookup.conf
25gnunet-arm -e -c test_gns_lookup.conf 25gnunet-arm -e -c test_gns_lookup.conf
26rm -rf /tmp/test-gnunet-gns-peer-1/
26 27
27if [ "$RES_TXT" == "$TEST_TXT" ] 28if [ "$RES_TXT" == "$TEST_TXT" ]
28then 29then
diff --git a/src/gns/test_gns_zkey_lookup.sh b/src/gns/test_gns_zkey_lookup.sh
index 619a9eb32..e5f47423a 100755
--- a/src/gns/test_gns_zkey_lookup.sh
+++ b/src/gns/test_gns_zkey_lookup.sh
@@ -14,7 +14,7 @@ then
14 exit 77 14 exit 77
15fi 15fi
16 16
17rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 17rm -rf /tmp/test-gnunet-gns-peer-1/
18 18
19TEST_IP="127.0.0.1" 19TEST_IP="127.0.0.1"
20gnunet-arm -s -c test_gns_lookup.conf 20gnunet-arm -s -c test_gns_lookup.conf
@@ -27,6 +27,7 @@ RES_IP=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.${DELEGATED_PKEY}.zkey -t
27gnunet-namestore -z testego -d -n b -t PKEY -V $DELEGATED_PKEY -e never -c test_gns_lookup.conf 27gnunet-namestore -z testego -d -n b -t PKEY -V $DELEGATED_PKEY -e never -c test_gns_lookup.conf
28gnunet-namestore -z delegatedego -d -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf 28gnunet-namestore -z delegatedego -d -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf
29gnunet-arm -e -c test_gns_lookup.conf 29gnunet-arm -e -c test_gns_lookup.conf
30rm -rf /tmp/test-gnunet-gns-peer-1/
30 31
31if [ "$RES_IP" == "$TEST_IP" ] 32if [ "$RES_IP" == "$TEST_IP" ]
32then 33then