aboutsummaryrefslogtreecommitdiff
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
parentfbe2292e299f7ba228ca71e70b0a33d80e0599c0 (diff)
downloadgnunet-94a7671f073eda0f9e83a86b206968cd27c90584.tar.gz
gnunet-94a7671f073eda0f9e83a86b206968cd27c90584.zip
meson: make test suites pass
-rw-r--r--src/cli/gns/meson.build1
-rwxr-xr-xsrc/cli/gns/test_gns_multiple_record_lookup.sh10
-rw-r--r--src/contrib/service/conversation/test_conversation.conf2
3 files changed, 8 insertions, 5 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
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
diff --git a/src/contrib/service/conversation/test_conversation.conf b/src/contrib/service/conversation/test_conversation.conf
index bca169991..097aed592 100644
--- a/src/contrib/service/conversation/test_conversation.conf
+++ b/src/contrib/service/conversation/test_conversation.conf
@@ -1,4 +1,4 @@
1@INLINE@ ../../../contrib/conf/gnunet/no_forcestart.conf 1@INLINE@ ../../../../contrib/conf/gnunet/no_forcestart.conf
2 2
3[conversation] 3[conversation]
4LINE=1 4LINE=1