aboutsummaryrefslogtreecommitdiff
path: root/src/cli/gns/test_gns_multiple_record_lookup.sh
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2023-11-23 20:21:57 +0100
committerMartin Schanzenbach <schanzen@gnunet.org>2023-11-23 20:21:57 +0100
commit94a7671f073eda0f9e83a86b206968cd27c90584 (patch)
tree66018e3a97fba64b9d362e4c8b7d8025efc2d4b7 /src/cli/gns/test_gns_multiple_record_lookup.sh
parentfbe2292e299f7ba228ca71e70b0a33d80e0599c0 (diff)
downloadgnunet-94a7671f073eda0f9e83a86b206968cd27c90584.tar.gz
gnunet-94a7671f073eda0f9e83a86b206968cd27c90584.zip
meson: make test suites pass
Diffstat (limited to 'src/cli/gns/test_gns_multiple_record_lookup.sh')
-rwxr-xr-xsrc/cli/gns/test_gns_multiple_record_lookup.sh10
1 files changed, 7 insertions, 3 deletions
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
23rm -rf `gnunet-config -c test_gns_lookup_peer1.conf -f -s paths -o GNUNET_TEST_HOME` 23rm -rf `gnunet-config -c test_gns_lookup_peer1.conf -f -s paths -o GNUNET_TEST_HOME`
24rm -rf `gnunet-config -c test_gns_lookup_peer2.conf -f -s paths -o GNUNET_TEST_HOME` 24rm -rf `gnunet-config -c test_gns_lookup_peer2.conf -f -s paths -o GNUNET_TEST_HOME`
25MY_EGO="localego"
26OTHER_EGO="remoteego" 25OTHER_EGO="remoteego"
27 26
28TEST_IP="127.0.0.1" 27TEST_IP="127.0.0.1"
@@ -30,7 +29,8 @@ TEST_IPV6="dead::beef"
30LABEL="fnord" 29LABEL="fnord"
31 30
32gnunet-arm -s -c test_gns_lookup_peer2.conf 31gnunet-arm -s -c test_gns_lookup_peer2.conf
33PKEY=`$DO_TIMEOUT gnunet-identity -V -C $OTHER_EGO -c test_gns_lookup_peer2.conf` 32gnunet-identity -C $OTHER_EGO -c test_gns_lookup_peer2.conf
33PKEY=`$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
49gnunet-namestore -p -z $OTHER_EGO -a -n $LABEL -t A -V $TEST_IP -e 3600s -c test_gns_lookup_peer2.conf 49gnunet-namestore -p -z $OTHER_EGO -a -n $LABEL -t A -V $TEST_IP -e 3600s -c test_gns_lookup_peer2.conf
50gnunet-namestore -p -z $OTHER_EGO -a -n $LABEL -t AAAA -V $TEST_IPV6 -e 3600s -c test_gns_lookup_peer2.conf 50gnunet-namestore -p -z $OTHER_EGO -a -n $LABEL -t AAAA -V $TEST_IPV6 -e 3600s -c test_gns_lookup_peer2.conf
51gnunet-namestore -D -z $OTHER_EGO -n $LABEL 51gnunet-namestore -D -z $OTHER_EGO -n $LABEL -c test_gns_lookup_peer2.conf
52 52
53gnunet-arm -c test_gns_lookup_peer2.conf -i zonemaster 53gnunet-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
59RESP1=`$DO_TIMEOUT gnunet-gns --raw -u $LABEL.$PKEY -t A -c test_gns_lookup_peer1.conf` 59RESP1=`$DO_TIMEOUT gnunet-gns --raw -u $LABEL.$PKEY -t A -c test_gns_lookup_peer1.conf`
60RESP2=`$DO_TIMEOUT gnunet-gns --raw -u $LABEL.$PKEY -t AAAA -c test_gns_lookup_peer1.conf` 60RESP2=`$DO_TIMEOUT gnunet-gns --raw -u $LABEL.$PKEY -t AAAA -c test_gns_lookup_peer1.conf`
61 61
62echo "$LABEL.$PKEY"
63echo $RESP $RESP1 $RESP2
62 64
63gnunet-arm -e -c test_gns_lookup_peer1.conf 65gnunet-arm -e -c test_gns_lookup_peer1.conf
64gnunet-arm -e -c test_gns_lookup_peer2.conf 66gnunet-arm -e -c test_gns_lookup_peer2.conf
65 67
68gnunet-config -c test_gns_lookup_peer1.conf -f -s paths -o GNUNET_TEST_HOME
69
66rm -rf `gnunet-config -c test_gns_lookup_peer1.conf -f -s paths -o GNUNET_TEST_HOME` 70rm -rf `gnunet-config -c test_gns_lookup_peer1.conf -f -s paths -o GNUNET_TEST_HOME`
67rm -rf `gnunet-config -c test_gns_lookup_peer2.conf -f -s paths -o GNUNET_TEST_HOME` 71rm -rf `gnunet-config -c test_gns_lookup_peer2.conf -f -s paths -o GNUNET_TEST_HOME`
68 72