diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2016-10-07 09:43:32 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2016-10-07 09:43:32 +0000 |
commit | b37e89b590b30cb4f650375807d60e1748930ba4 (patch) | |
tree | 7ec836c685f90d900241253780ffc21fa7bb23a0 /src/gns/test_gns_reverse_lookup.sh | |
parent | 014c0a8f67696d36bf27af70537a6a71abaa1653 (diff) | |
download | gnunet-b37e89b590b30cb4f650375807d60e1748930ba4.tar.gz gnunet-b37e89b590b30cb4f650375807d60e1748930ba4.zip |
-add reverse autoadd; with test
Diffstat (limited to 'src/gns/test_gns_reverse_lookup.sh')
-rwxr-xr-x | src/gns/test_gns_reverse_lookup.sh | 16 |
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 | ||
17 | TEST_NAME="dave.bob.alice.gnu" | 17 | TEST_NAME="dave.bob.alice.gnu" |
18 | gnunet-arm -s -c test_gns_lookup.conf | 18 | gnunet-arm -s -c test_gns_lookup.conf |
19 | gnunet-identity -C bobego -c test_gns_lookup.conf | 19 | gnunet-identity -C bob -c test_gns_lookup.conf |
20 | BOB_PKEY=$(gnunet-identity -d -c test_gns_lookup.conf | grep bob | awk '{print $3}') | 20 | BOB_PKEY=$(gnunet-identity -d -c test_gns_lookup.conf | grep bob | awk '{print $3}') |
21 | gnunet-identity -C daveego -c test_gns_lookup.conf | 21 | gnunet-identity -C daveego -c test_gns_lookup.conf |
22 | DAVE_PKEY=$(gnunet-identity -d -c test_gns_lookup.conf | grep dave | awk '{print $3}') | 22 | DAVE_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 | |||
24 | ALICE_PKEY=$(gnunet-identity -d -c test_gns_lookup.conf | grep alice | awk '{print $3}') | 24 | ALICE_PKEY=$(gnunet-identity -d -c test_gns_lookup.conf | grep alice | awk '{print $3}') |
25 | gnunet-identity -C testego -c test_gns_lookup.conf | 25 | gnunet-identity -C testego -c test_gns_lookup.conf |
26 | ROOT_PKEY=$(gnunet-identity -d -c test_gns_lookup.conf | grep testego | awk '{print $3}') | 26 | ROOT_PKEY=$(gnunet-identity -d -c test_gns_lookup.conf | grep testego | awk '{print $3}') |
27 | |||
28 | gnunet-identity -s gns-reverse -e bob -c test_gns_lookup.conf | ||
29 | |||
27 | gnunet-namestore -p -z testego -a -n alice -t PKEY -V $ALICE_PKEY -e never -c test_gns_lookup.conf | 30 | gnunet-namestore -p -z testego -a -n alice -t PKEY -V $ALICE_PKEY -e never -c test_gns_lookup.conf |
28 | gnunet-namestore -p -z aliceego -a -n bob -t PKEY -V $BOB_PKEY -e never -c test_gns_lookup.conf | 31 | gnunet-namestore -p -z aliceego -a -n bob -t PKEY -V $BOB_PKEY -e never -c test_gns_lookup.conf |
29 | gnunet-namestore -p -z aliceego -a -n + -t REVERSE -V "alice $ROOT_PKEY 0" -e never -c test_gns_lookup.conf | 32 | gnunet-namestore -p -z aliceego -a -n + -t REVERSE -V "alice $ROOT_PKEY 0" -e never -c test_gns_lookup.conf |
30 | gnunet-namestore -p -z bobego -a -n dave -t PKEY -V $DAVE_PKEY -e never -c test_gns_lookup.conf | 33 | gnunet-namestore -p -z bob -a -n dave -t PKEY -V $DAVE_PKEY -e never -c test_gns_lookup.conf |
31 | gnunet-namestore -p -z bobego -a -n + -t REVERSE -V "bob $ALICE_PKEY 0" -e never -c test_gns_lookup.conf | 34 | gnunet-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 | ||
32 | gnunet-namestore -p -z daveego -a -n + -t REVERSE -V "dave $BOB_PKEY 0" -e never -c test_gns_lookup.conf | 36 | gnunet-namestore -p -z daveego -a -n + -t REVERSE -V "dave $BOB_PKEY 0" -e never -c test_gns_lookup.conf |
37 | gnunet-namestore -p -z daveego -a -n bob -t PKEY -V $BOB_PKEY -e never -c test_gns_lookup.conf | ||
33 | gnunet-arm -i gns -c test_gns_lookup.conf | 38 | gnunet-arm -i gns -c test_gns_lookup.conf |
34 | sleep 0.5 | 39 | $DO_TIMEOUT gnunet-gns --raw -z aliceego -u bob.gnu -t PKEY -c test_gns_lookup.conf |
40 | sleep 10 | ||
41 | gnunet-namestore -z bob -D -c test_gns_lookup.conf | ||
42 | gnunet-namestore -z daveego -D -c test_gns_lookup.conf | ||
35 | RES_NAME=`$DO_TIMEOUT gnunet-gns --raw -z testego -R $DAVE_PKEY -c test_gns_lookup.conf` | 43 | RES_NAME=`$DO_TIMEOUT gnunet-gns --raw -z testego -R $DAVE_PKEY -c test_gns_lookup.conf` |
36 | gnunet-arm -e -c test_gns_lookup.conf | 44 | gnunet-arm -e -c test_gns_lookup.conf |
37 | rm -rf /tmp/test-gnunet-gns-peer-1/ | 45 | rm -rf /tmp/test-gnunet-gns-peer-1/ |