aboutsummaryrefslogtreecommitdiff
path: root/src/gns/test_gns_reverse_lookup.sh
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2016-10-07 09:43:32 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2016-10-07 09:43:32 +0000
commitb37e89b590b30cb4f650375807d60e1748930ba4 (patch)
tree7ec836c685f90d900241253780ffc21fa7bb23a0 /src/gns/test_gns_reverse_lookup.sh
parent014c0a8f67696d36bf27af70537a6a71abaa1653 (diff)
downloadgnunet-b37e89b590b30cb4f650375807d60e1748930ba4.tar.gz
gnunet-b37e89b590b30cb4f650375807d60e1748930ba4.zip
-add reverse autoadd; with test
Diffstat (limited to 'src/gns/test_gns_reverse_lookup.sh')
-rwxr-xr-xsrc/gns/test_gns_reverse_lookup.sh16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/gns/test_gns_reverse_lookup.sh b/src/gns/test_gns_reverse_lookup.sh
index 73b829e07..bff1c0662 100755
--- a/src/gns/test_gns_reverse_lookup.sh
+++ b/src/gns/test_gns_reverse_lookup.sh
@@ -16,7 +16,7 @@ fi
16 16
17TEST_NAME="dave.bob.alice.gnu" 17TEST_NAME="dave.bob.alice.gnu"
18gnunet-arm -s -c test_gns_lookup.conf 18gnunet-arm -s -c test_gns_lookup.conf
19gnunet-identity -C bobego -c test_gns_lookup.conf 19gnunet-identity -C bob -c test_gns_lookup.conf
20BOB_PKEY=$(gnunet-identity -d -c test_gns_lookup.conf | grep bob | awk '{print $3}') 20BOB_PKEY=$(gnunet-identity -d -c test_gns_lookup.conf | grep bob | awk '{print $3}')
21gnunet-identity -C daveego -c test_gns_lookup.conf 21gnunet-identity -C daveego -c test_gns_lookup.conf
22DAVE_PKEY=$(gnunet-identity -d -c test_gns_lookup.conf | grep dave | awk '{print $3}') 22DAVE_PKEY=$(gnunet-identity -d -c test_gns_lookup.conf | grep dave | awk '{print $3}')
@@ -24,14 +24,22 @@ gnunet-identity -C aliceego -c test_gns_lookup.conf
24ALICE_PKEY=$(gnunet-identity -d -c test_gns_lookup.conf | grep alice | awk '{print $3}') 24ALICE_PKEY=$(gnunet-identity -d -c test_gns_lookup.conf | grep alice | awk '{print $3}')
25gnunet-identity -C testego -c test_gns_lookup.conf 25gnunet-identity -C testego -c test_gns_lookup.conf
26ROOT_PKEY=$(gnunet-identity -d -c test_gns_lookup.conf | grep testego | awk '{print $3}') 26ROOT_PKEY=$(gnunet-identity -d -c test_gns_lookup.conf | grep testego | awk '{print $3}')
27
28gnunet-identity -s gns-reverse -e bob -c test_gns_lookup.conf
29
27gnunet-namestore -p -z testego -a -n alice -t PKEY -V $ALICE_PKEY -e never -c test_gns_lookup.conf 30gnunet-namestore -p -z testego -a -n alice -t PKEY -V $ALICE_PKEY -e never -c test_gns_lookup.conf
28gnunet-namestore -p -z aliceego -a -n bob -t PKEY -V $BOB_PKEY -e never -c test_gns_lookup.conf 31gnunet-namestore -p -z aliceego -a -n bob -t PKEY -V $BOB_PKEY -e never -c test_gns_lookup.conf
29gnunet-namestore -p -z aliceego -a -n + -t REVERSE -V "alice $ROOT_PKEY 0" -e never -c test_gns_lookup.conf 32gnunet-namestore -p -z aliceego -a -n + -t REVERSE -V "alice $ROOT_PKEY 0" -e never -c test_gns_lookup.conf
30gnunet-namestore -p -z bobego -a -n dave -t PKEY -V $DAVE_PKEY -e never -c test_gns_lookup.conf 33gnunet-namestore -p -z bob -a -n dave -t PKEY -V $DAVE_PKEY -e never -c test_gns_lookup.conf
31gnunet-namestore -p -z bobego -a -n + -t REVERSE -V "bob $ALICE_PKEY 0" -e never -c test_gns_lookup.conf 34gnunet-namestore -p -z bob -a -n alice -t PKEY -V $ALICE_PKEY -e never -c test_gns_lookup.conf
35#gnunet-namestore -p -z bob -a -n + -t REVERSE -V "bob $ALICE_PKEY 0" -e never -c test_gns_lookup.conf
32gnunet-namestore -p -z daveego -a -n + -t REVERSE -V "dave $BOB_PKEY 0" -e never -c test_gns_lookup.conf 36gnunet-namestore -p -z daveego -a -n + -t REVERSE -V "dave $BOB_PKEY 0" -e never -c test_gns_lookup.conf
37gnunet-namestore -p -z daveego -a -n bob -t PKEY -V $BOB_PKEY -e never -c test_gns_lookup.conf
33gnunet-arm -i gns -c test_gns_lookup.conf 38gnunet-arm -i gns -c test_gns_lookup.conf
34sleep 0.5 39$DO_TIMEOUT gnunet-gns --raw -z aliceego -u bob.gnu -t PKEY -c test_gns_lookup.conf
40sleep 10
41gnunet-namestore -z bob -D -c test_gns_lookup.conf
42gnunet-namestore -z daveego -D -c test_gns_lookup.conf
35RES_NAME=`$DO_TIMEOUT gnunet-gns --raw -z testego -R $DAVE_PKEY -c test_gns_lookup.conf` 43RES_NAME=`$DO_TIMEOUT gnunet-gns --raw -z testego -R $DAVE_PKEY -c test_gns_lookup.conf`
36gnunet-arm -e -c test_gns_lookup.conf 44gnunet-arm -e -c test_gns_lookup.conf
37rm -rf /tmp/test-gnunet-gns-peer-1/ 45rm -rf /tmp/test-gnunet-gns-peer-1/