[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 01/03: testing: start properly naming plugins in testing
From: |
gnunet |
Subject: |
[gnunet] 01/03: testing: start properly naming plugins in testing |
Date: |
Sun, 22 Dec 2024 12:19:29 +0100 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
commit 70745ff395e0b3f2636279a173345f12b1b43b05
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Sun Dec 22 12:08:38 2024 +0100
testing: start properly naming plugins in testing
---
src/include/gnunet_testing_lib.h | 4 ++--
src/service/transport/Makefile.am | 28 +++++-----------------
...nd.c => plugin_testing_transport_simple_send.c} | 4 ++--
.../transport/test_transport_simple_send_topo.conf | 2 +-
...imple.c => transport_testing_cmd_simple_send.c} | 4 ++--
5 files changed, 13 insertions(+), 29 deletions(-)
diff --git a/src/include/gnunet_testing_lib.h b/src/include/gnunet_testing_lib.h
index 99669451f..20371c865 100644
--- a/src/include/gnunet_testing_lib.h
+++ b/src/include/gnunet_testing_lib.h
@@ -783,7 +783,7 @@ GNUNET_TESTING_make_plugin (
#define GNUNET_TESTING_MAKE_PLUGIN(prefix,name,...) \
void * \
- prefix ## _plugin_ ## name ## _init (void *cls) { \
+ libgnunet_plugin_testing_ ## prefix ## _ ## name ## _init (void
*cls) { \
const char *my_node_id = cls; (void) my_node_id; \
struct GNUNET_TESTING_Command commands[] = { \
__VA_ARGS__, \
@@ -792,7 +792,7 @@ GNUNET_TESTING_make_plugin (
return GNUNET_TESTING_make_plugin (commands); \
} \
void * \
- prefix ## _plugin_ ## name ## _done (void *cls) { \
+ libgnunet_plugin_testing_ ## prefix ## _ ## name ## _done (void *cls)
{ \
struct GNUNET_TESTING_PluginFunctions *api = cls; \
GNUNET_free (api); \
return NULL; \
diff --git a/src/service/transport/Makefile.am
b/src/service/transport/Makefile.am
index b0894f052..ff3809d18 100644
--- a/src/service/transport/Makefile.am
+++ b/src/service/transport/Makefile.am
@@ -27,9 +27,9 @@ lib_LTLIBRARIES = \
libgnunettransportmonitor.la \
$(TESTING_LIBS)
-libgnunet_test_transport_plugin_simple_send_la_SOURCES = \
- test_transport_plugin_simple_send.c
-libgnunet_test_transport_plugin_simple_send_la_LIBADD = \
+libgnunet_plugin_testing_transport_simple_send_la_SOURCES = \
+ plugin_testing_transport_simple_send.c
+libgnunet_plugin_testing_transport_simple_send_la_LIBADD = \
libgnunettestingtransport.la \
$(top_builddir)/src/service/arm/libgnunettestingarm.la \
$(top_builddir)/src/lib/testing/libgnunettesting.la \
@@ -42,7 +42,7 @@ libgnunet_test_transport_plugin_simple_send_la_LIBADD = \
libgnunettestingtransport_la_SOURCES = \
testing_transport_traits.c transport-testing-cmds.h \
transport-testing-communicator.c transport-testing-communicator.h \
- testing_transport_cmd_send_simple.c
+ transport_testing_cmd_simple_send.c
# transport_api_cmd_connecting_peers.c \
# transport_api_cmd_backchannel_check.c \
# transport_api_cmd_send_simple_performance.c \
@@ -224,7 +224,7 @@ gnunet_service_transport_LDADD = \
$(GN_LIBINTL)
plugin_LTLIBRARIES = \
- libgnunet_test_transport_plugin_simple_send.la
+ libgnunet_plugin_testing_transport_simple_send.la
#libgnunet_test_transport_plugin_cmd_nat_mapping_la_SOURCES = \
# test_transport_plugin_cmd_nat_mapping.c
@@ -274,24 +274,8 @@
libgnunet_test_transport_plugin_cmd_udp_backchannel_la_LIBADD = \
libgnunet_test_transport_plugin_cmd_udp_backchannel_la_LDFLAGS = \
$(GN_PLUGIN_LDFLAGS)
-libgnunet_test_transport_plugin_cmd_simple_send_la_SOURCES = \
- test_transport_plugin_cmd_simple_send.c
-libgnunet_test_transport_plugin_cmd_simple_send_la_LIBADD = \
- libgnunettestingtransport.la \
- libgnunettransportapplication.la \
- libgnunettransportcore.la \
- $(top_builddir)/src/lib/testing/libgnunettesting.la \
- $(top_builddir)/src/service/peerstore/libgnunetpeerstore.la \
- $(top_builddir)/src/service/statistics/libgnunetstatistics.la \
- $(top_builddir)/src/lib/hello/libgnunethello.la \
- $(top_builddir)/src/service/arm/libgnunetarm.la \
- $(top_builddir)/src/lib/util/libgnunetutil.la \
- $(LTLIBINTL)
-libgnunet_test_transport_plugin_cmd_simple_send_la_LDFLAGS = \
- $(GN_PLUGIN_LDFLAGS)
-
libgnunet_test_transport_plugin_cmd_simple_send_performance_la_SOURCES = \
- test_transport_plugin_cmd_simple_send_performance.c
+ test_transport_plugin_cmdsimple_send_performance.c
libgnunet_test_transport_plugin_cmd_simple_send_performance_la_LIBADD = \
libgnunettestingtransport.la \
libgnunettransportapplication.la \
diff --git a/src/service/transport/test_transport_plugin_simple_send.c
b/src/service/transport/plugin_testing_transport_simple_send.c
similarity index 96%
rename from src/service/transport/test_transport_plugin_simple_send.c
rename to src/service/transport/plugin_testing_transport_simple_send.c
index 5530eabaf..811622518 100644
--- a/src/service/transport/test_transport_plugin_simple_send.c
+++ b/src/service/transport/plugin_testing_transport_simple_send.c
@@ -19,7 +19,7 @@
*/
/**
- * @file service/transport/test_plugin_transport_simple_send.c
+ * @file service/transport/plugin_testing_transport_simple_send.c
* @brief a plugin to test simple sending of message.
* @author schanzen
*/
@@ -66,7 +66,7 @@ get_conf_name (const char *my_node_id)
GNUNET_TESTING_MAKE_PLUGIN (
- libgnunet_test_transport,
+ transport,
simple_send,
GNUNET_TESTBED_cmd_system_create ("system",
my_node_id),
diff --git a/src/service/transport/test_transport_simple_send_topo.conf
b/src/service/transport/test_transport_simple_send_topo.conf
index be6e3afab..ac0561f03 100644
--- a/src/service/transport/test_transport_simple_send_topo.conf
+++ b/src/service/transport/test_transport_simple_send_topo.conf
@@ -3,7 +3,7 @@ SUBNETS = 1
#CARRIER_SETUP_PROGRAMMS = iptables -A INPUT -p icmp -j DROP;tc qdisc add dev
$UPLINK root netm delay 100ms 10ms;
#SUBNET_SETUP_PROGRAMMS = iptables -A INPUT -p icmp -j DROP;tc qdisc add dev
$UPLINK root netm delay 100ms 10ms;
#PEER_SETUP_PROGRAMMS = iptables -A INPUT -p icmp -j DROP;tc qdisc add dev
$UPLINK root netm delay 100ms 10ms;
-TESTBED_PLUGIN = libgnunet_test_transport_plugin_simple_send
+TESTBED_PLUGIN = libgnunet_plugin_testing_transport_simple_send
CARRIER_PEERS = 0
SUBNET_PEERS = 2
diff --git a/src/service/transport/testing_transport_cmd_send_simple.c
b/src/service/transport/transport_testing_cmd_simple_send.c
similarity index 97%
rename from src/service/transport/testing_transport_cmd_send_simple.c
rename to src/service/transport/transport_testing_cmd_simple_send.c
index aba998e9b..45eba5df2 100644
--- a/src/service/transport/testing_transport_cmd_send_simple.c
+++ b/src/service/transport/transport_testing_cmd_simple_send.c
@@ -19,8 +19,8 @@
*/
/**
- * @file testing_api_cmd_start_peer.c
- * @brief cmd to start a peer.
+ * @file src/service/transport/transport_testing_cmd_simple_send.c
+ * @brief Testing command to send a simple message.
* @author t3sserakt
*/
#include "platform.h"
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.