diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2023-11-23 20:21:57 +0100 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-11-23 20:21:57 +0100 |
commit | 94a7671f073eda0f9e83a86b206968cd27c90584 (patch) | |
tree | 66018e3a97fba64b9d362e4c8b7d8025efc2d4b7 | |
parent | fbe2292e299f7ba228ca71e70b0a33d80e0599c0 (diff) | |
download | gnunet-94a7671f073eda0f9e83a86b206968cd27c90584.tar.gz gnunet-94a7671f073eda0f9e83a86b206968cd27c90584.zip |
meson: make test suites pass
-rw-r--r-- | src/cli/gns/meson.build | 1 | ||||
-rwxr-xr-x | src/cli/gns/test_gns_multiple_record_lookup.sh | 10 | ||||
-rw-r--r-- | src/contrib/service/conversation/test_conversation.conf | 2 |
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 | ||
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 | ||
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] |
4 | LINE=1 | 4 | LINE=1 |