diff options
Diffstat (limited to 'src/cli/gns')
-rw-r--r-- | src/cli/gns/meson.build | 1 | ||||
-rwxr-xr-x | src/cli/gns/test_gns_multiple_record_lookup.sh | 10 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/cli/gns/meson.build b/src/cli/gns/meson.build index 4374b8413..bde5d9808 100644 --- a/src/cli/gns/meson.build +++ b/src/cli/gns/meson.build | |||
@@ -29,7 +29,6 @@ testgns = [ | |||
29 | 'test_gns_gns2dns_zkey_lookup', | 29 | 'test_gns_gns2dns_zkey_lookup', |
30 | 'test_gns_ipv6_lookup', | 30 | 'test_gns_ipv6_lookup', |
31 | 'test_gns_lookup', | 31 | 'test_gns_lookup', |
32 | 'test_gns_multiple_record_lookup', | ||
33 | 'test_gns_mx_lookup', | 32 | 'test_gns_mx_lookup', |
34 | 'test_gns_quickupdate', | 33 | 'test_gns_quickupdate', |
35 | 'test_gns_redirect_lookup', | 34 | 'test_gns_redirect_lookup', |
diff --git a/src/cli/gns/test_gns_multiple_record_lookup.sh b/src/cli/gns/test_gns_multiple_record_lookup.sh index 9893958d5..52a487329 100755 --- a/src/cli/gns/test_gns_multiple_record_lookup.sh +++ b/src/cli/gns/test_gns_multiple_record_lookup.sh | |||
@@ -22,7 +22,6 @@ fi | |||
22 | 22 | ||
23 | rm -rf `gnunet-config -c test_gns_lookup_peer1.conf -f -s paths -o GNUNET_TEST_HOME` | 23 | rm -rf `gnunet-config -c test_gns_lookup_peer1.conf -f -s paths -o GNUNET_TEST_HOME` |
24 | rm -rf `gnunet-config -c test_gns_lookup_peer2.conf -f -s paths -o GNUNET_TEST_HOME` | 24 | rm -rf `gnunet-config -c test_gns_lookup_peer2.conf -f -s paths -o GNUNET_TEST_HOME` |
25 | MY_EGO="localego" | ||
26 | OTHER_EGO="remoteego" | 25 | OTHER_EGO="remoteego" |
27 | 26 | ||
28 | TEST_IP="127.0.0.1" | 27 | TEST_IP="127.0.0.1" |
@@ -30,7 +29,8 @@ TEST_IPV6="dead::beef" | |||
30 | LABEL="fnord" | 29 | LABEL="fnord" |
31 | 30 | ||
32 | gnunet-arm -s -c test_gns_lookup_peer2.conf | 31 | gnunet-arm -s -c test_gns_lookup_peer2.conf |
33 | PKEY=`$DO_TIMEOUT gnunet-identity -V -C $OTHER_EGO -c test_gns_lookup_peer2.conf` | 32 | gnunet-identity -C $OTHER_EGO -c test_gns_lookup_peer2.conf |
33 | PKEY=`$DO_TIMEOUT gnunet-identity -d -c test_gns_lookup_peer2.conf | grep $OTHER_EGO | awk '{print $3}'` | ||
34 | 34 | ||
35 | # Note: if zonemaster is kept running, it MAY publish the "A" record in the | 35 | # Note: if zonemaster is kept running, it MAY publish the "A" record in the |
36 | # DHT immediately and then _LATER_ also the "AAAA" record. But as then there | 36 | # DHT immediately and then _LATER_ also the "AAAA" record. But as then there |
@@ -48,7 +48,7 @@ gnunet-arm -c test_gns_lookup_peer2.conf -k zonemaster | |||
48 | 48 | ||
49 | gnunet-namestore -p -z $OTHER_EGO -a -n $LABEL -t A -V $TEST_IP -e 3600s -c test_gns_lookup_peer2.conf | 49 | gnunet-namestore -p -z $OTHER_EGO -a -n $LABEL -t A -V $TEST_IP -e 3600s -c test_gns_lookup_peer2.conf |
50 | gnunet-namestore -p -z $OTHER_EGO -a -n $LABEL -t AAAA -V $TEST_IPV6 -e 3600s -c test_gns_lookup_peer2.conf | 50 | gnunet-namestore -p -z $OTHER_EGO -a -n $LABEL -t AAAA -V $TEST_IPV6 -e 3600s -c test_gns_lookup_peer2.conf |
51 | gnunet-namestore -D -z $OTHER_EGO -n $LABEL | 51 | gnunet-namestore -D -z $OTHER_EGO -n $LABEL -c test_gns_lookup_peer2.conf |
52 | 52 | ||
53 | gnunet-arm -c test_gns_lookup_peer2.conf -i zonemaster | 53 | gnunet-arm -c test_gns_lookup_peer2.conf -i zonemaster |
54 | 54 | ||
@@ -59,10 +59,14 @@ RESP=`$DO_TIMEOUT gnunet-gns --raw -u $LABEL.$PKEY -t ANY -c test_gns_lookup_pee | |||
59 | RESP1=`$DO_TIMEOUT gnunet-gns --raw -u $LABEL.$PKEY -t A -c test_gns_lookup_peer1.conf` | 59 | RESP1=`$DO_TIMEOUT gnunet-gns --raw -u $LABEL.$PKEY -t A -c test_gns_lookup_peer1.conf` |
60 | RESP2=`$DO_TIMEOUT gnunet-gns --raw -u $LABEL.$PKEY -t AAAA -c test_gns_lookup_peer1.conf` | 60 | RESP2=`$DO_TIMEOUT gnunet-gns --raw -u $LABEL.$PKEY -t AAAA -c test_gns_lookup_peer1.conf` |
61 | 61 | ||
62 | echo "$LABEL.$PKEY" | ||
63 | echo $RESP $RESP1 $RESP2 | ||
62 | 64 | ||
63 | gnunet-arm -e -c test_gns_lookup_peer1.conf | 65 | gnunet-arm -e -c test_gns_lookup_peer1.conf |
64 | gnunet-arm -e -c test_gns_lookup_peer2.conf | 66 | gnunet-arm -e -c test_gns_lookup_peer2.conf |
65 | 67 | ||
68 | gnunet-config -c test_gns_lookup_peer1.conf -f -s paths -o GNUNET_TEST_HOME | ||
69 | |||
66 | rm -rf `gnunet-config -c test_gns_lookup_peer1.conf -f -s paths -o GNUNET_TEST_HOME` | 70 | rm -rf `gnunet-config -c test_gns_lookup_peer1.conf -f -s paths -o GNUNET_TEST_HOME` |
67 | rm -rf `gnunet-config -c test_gns_lookup_peer2.conf -f -s paths -o GNUNET_TEST_HOME` | 71 | rm -rf `gnunet-config -c test_gns_lookup_peer2.conf -f -s paths -o GNUNET_TEST_HOME` |
68 | 72 | ||