diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-12-26 14:51:50 +0900 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-12-26 14:51:50 +0900 |
commit | 4b9bda397d8988d6a4e2f3f009c2157fc35a305a (patch) | |
tree | 87497dabafc8dd80c27e4c080d5e5891509456bc | |
parent | 4f331dcb694ec0241093e8a46d82ac8ce6537219 (diff) | |
download | gnunet-4b9bda397d8988d6a4e2f3f009c2157fc35a305a.tar.gz gnunet-4b9bda397d8988d6a4e2f3f009c2157fc35a305a.zip |
add udp comm test case
-rw-r--r-- | src/transport/Makefile.am | 14 | ||||
-rw-r--r-- | src/transport/test_communicator_udp_peer1.conf | 31 | ||||
-rw-r--r-- | src/transport/test_communicator_udp_peer2.conf | 31 |
3 files changed, 74 insertions, 2 deletions
diff --git a/src/transport/Makefile.am b/src/transport/Makefile.am index e35b6bb3f..e037f3001 100644 --- a/src/transport/Makefile.am +++ b/src/transport/Makefile.am | |||
@@ -597,7 +597,8 @@ check_PROGRAMS += \ | |||
597 | test_transport_api_reliability_udp \ | 597 | test_transport_api_reliability_udp \ |
598 | test_quota_compliance_udp \ | 598 | test_quota_compliance_udp \ |
599 | test_communicator_basic_unix \ | 599 | test_communicator_basic_unix \ |
600 | test_communicator_basic_tcp | 600 | test_communicator_basic_tcp \ |
601 | test_communicator_basic_udp | ||
601 | endif | 602 | endif |
602 | endif | 603 | endif |
603 | 604 | ||
@@ -796,6 +797,13 @@ test_communicator_basic_tcp_LDADD = \ | |||
796 | libgnunettransporttesting2.la \ | 797 | libgnunettransporttesting2.la \ |
797 | $(top_builddir)/src/testing/libgnunettesting.la \ | 798 | $(top_builddir)/src/testing/libgnunettesting.la \ |
798 | $(top_builddir)/src/util/libgnunetutil.la | 799 | $(top_builddir)/src/util/libgnunetutil.la |
800 | |||
801 | test_communicator_basic_udp_SOURCES = \ | ||
802 | test_communicator_basic.c | ||
803 | test_communicator_basic_udp_LDADD = \ | ||
804 | libgnunettransporttesting2.la \ | ||
805 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
806 | $(top_builddir)/src/util/libgnunetutil.la | ||
799 | endif | 807 | endif |
800 | 808 | ||
801 | test_plugin_unix_SOURCES = \ | 809 | test_plugin_unix_SOURCES = \ |
@@ -1498,4 +1506,6 @@ test_transport_api_slow_ats_peer2.conf \ | |||
1498 | test_communicator_unix_peer1.conf \ | 1506 | test_communicator_unix_peer1.conf \ |
1499 | test_communicator_unix_peer2.conf \ | 1507 | test_communicator_unix_peer2.conf \ |
1500 | test_communicator_tcp_peer1.conf \ | 1508 | test_communicator_tcp_peer1.conf \ |
1501 | test_communicator_tcp_peer2.conf | 1509 | test_communicator_tcp_peer2.conf \ |
1510 | test_communicator_udp_peer1.conf \ | ||
1511 | test_communicator_udp_peer2.conf | ||
diff --git a/src/transport/test_communicator_udp_peer1.conf b/src/transport/test_communicator_udp_peer1.conf new file mode 100644 index 000000000..fc08af1ee --- /dev/null +++ b/src/transport/test_communicator_udp_peer1.conf | |||
@@ -0,0 +1,31 @@ | |||
1 | @INLINE@ test_transport_defaults.conf | ||
2 | |||
3 | [PATHS] | ||
4 | GNUNET_TEST_HOME = $GNUNET_TMP/test-communicator-unix-1/ | ||
5 | |||
6 | [PEER] | ||
7 | PRIVATE_KEY = $GNUNET_TMP/test-communicator-unix-1/private.key | ||
8 | |||
9 | [transport-tcp] | ||
10 | PORT = 52400 | ||
11 | |||
12 | [transport-udp] | ||
13 | PORT = 52401 | ||
14 | |||
15 | [transport] | ||
16 | PORT = 60000 | ||
17 | UNIXPATH = $GNUNET_RUNTIME_DIR/gnunet-service-transport_test_1.sock | ||
18 | |||
19 | [nat] | ||
20 | UNIXPATH = $GNUNET_TMP/test-communicator-unix-1/nat.sock | ||
21 | ENABLE_IPSCAN = YES | ||
22 | |||
23 | [communicator-unix] | ||
24 | UNIXPATH = $GNUNET_RUNTIME_DIR/test_gnunet-communicator-unix_1.sock | ||
25 | |||
26 | [communicator-tcp] | ||
27 | BINDTO = 60002 | ||
28 | DISABLE_V6 = YES | ||
29 | |||
30 | [communicator-udp] | ||
31 | BINDTO = 60002 | ||
diff --git a/src/transport/test_communicator_udp_peer2.conf b/src/transport/test_communicator_udp_peer2.conf new file mode 100644 index 000000000..4197df00d --- /dev/null +++ b/src/transport/test_communicator_udp_peer2.conf | |||
@@ -0,0 +1,31 @@ | |||
1 | @INLINE@ test_transport_defaults.conf | ||
2 | |||
3 | [PATHS] | ||
4 | GNUNET_TEST_HOME = $GNUNET_TMP/test-gnunetd-plugin-transport/ | ||
5 | |||
6 | [PEER] | ||
7 | PRIVATE_KEY = $GNUNET_TMP/test-communicator-unix-2/private.key | ||
8 | |||
9 | |||
10 | [transport-tcp] | ||
11 | PORT = 52400 | ||
12 | |||
13 | [transport-udp] | ||
14 | PORT = 52401 | ||
15 | |||
16 | [transport] | ||
17 | PORT = 60001 | ||
18 | UNIXPATH = $GNUNET_RUNTIME_DIR/gnunet-service-transport_test_2.sock | ||
19 | |||
20 | [nat] | ||
21 | UNIXPATH = $GNUNET_TMP/test-communicator-unix-2/nat.sock | ||
22 | |||
23 | [communicator-unix] | ||
24 | UNIXPATH = $GNUNET_RUNTIME_DIR/test_gnunet-communicator-unix_2.sock | ||
25 | |||
26 | [communicator-tcp] | ||
27 | BINDTO = 60003 | ||
28 | DISABLE_V6 = YES | ||
29 | |||
30 | [communicator-udp] | ||
31 | BINDTO = 60003 | ||