diff options
-rw-r--r-- | src/testing/Makefile.am | 24 | ||||
-rw-r--r-- | src/testing/new_testing_api_peers.c | 4 | ||||
-rw-r--r-- | src/testing/new_testing_api_peers.h | 2 | ||||
-rw-r--r-- | src/testing/new_testing_api_testbed.c | 4 |
4 files changed, 28 insertions, 6 deletions
diff --git a/src/testing/Makefile.am b/src/testing/Makefile.am index 47a4e1bd0..9dfe66b92 100644 --- a/src/testing/Makefile.am +++ b/src/testing/Makefile.am | |||
@@ -33,7 +33,29 @@ if HAVE_EXPENSIVE_TESTS | |||
33 | test_testing_topology_scale_free | 33 | test_testing_topology_scale_free |
34 | endif | 34 | endif |
35 | 35 | ||
36 | lib_LTLIBRARIES = libgnunettesting.la | 36 | lib_LTLIBRARIES = \ |
37 | libgnunettesting.la \ | ||
38 | libgnunettesting_new.la | ||
39 | |||
40 | libgnunettesting_new_la_SOURCES = \ | ||
41 | new_testing_api.c new_testing.h \ | ||
42 | new_testing_api_hosts.c new_testing_api_hosts.h \ | ||
43 | new_testing_api_operations.c new_testing_api_operations.h \ | ||
44 | new_testing_api_peers.c new_testing_api_peers.h \ | ||
45 | new_testing_api_services.c \ | ||
46 | new_testing_api_testbed.c \ | ||
47 | new_testing_api_test.c \ | ||
48 | new_testing_api_topology.c | ||
49 | libgnunettesting_new_la_LIBADD = $(XLIB) \ | ||
50 | $(top_builddir)/src/core/libgnunetcore.la \ | ||
51 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | ||
52 | $(top_builddir)/src/transport/libgnunettransport.la \ | ||
53 | $(top_builddir)/src/hello/libgnunethello.la \ | ||
54 | -lm \ | ||
55 | $(top_builddir)/src/util/libgnunetutil.la | ||
56 | libgnunettesting_new_la_LDFLAGS = \ | ||
57 | $(GN_LIB_LDFLAGS) \ | ||
58 | -version-info 0:0:0 | ||
37 | 59 | ||
38 | libgnunettesting_la_SOURCES = \ | 60 | libgnunettesting_la_SOURCES = \ |
39 | helper.c \ | 61 | helper.c \ |
diff --git a/src/testing/new_testing_api_peers.c b/src/testing/new_testing_api_peers.c index fae38b3be..305b86b17 100644 --- a/src/testing/new_testing_api_peers.c +++ b/src/testing/new_testing_api_peers.c | |||
@@ -127,8 +127,8 @@ GNUNET_TESTING_peer_lookup_by_id_ (uint32_t id) | |||
127 | * @return handle to the peer (actual startup will happen asynchronously) | 127 | * @return handle to the peer (actual startup will happen asynchronously) |
128 | */ | 128 | */ |
129 | struct GNUNET_TESTING_Peer * | 129 | struct GNUNET_TESTING_Peer * |
130 | GNUNET_TESTING_peer_create_with_id_ (struct GNUNET_TESTING_Controller *controller, | 130 | GNUNET_TESTING_peer_create_with_id_ (uint32_t unique_id, |
131 | uint32_t unique_id, | 131 | struct GNUNET_TESTING_Controller *controller, |
132 | struct GNUNET_TESTING_Host *host, | 132 | struct GNUNET_TESTING_Host *host, |
133 | const struct GNUNET_CONFIGURATION_Handle *cfg) | 133 | const struct GNUNET_CONFIGURATION_Handle *cfg) |
134 | { | 134 | { |
diff --git a/src/testing/new_testing_api_peers.h b/src/testing/new_testing_api_peers.h index a7987f6b2..97c9e4fd9 100644 --- a/src/testing/new_testing_api_peers.h +++ b/src/testing/new_testing_api_peers.h | |||
@@ -61,7 +61,7 @@ | |||
61 | */ | 61 | */ |
62 | struct GNUNET_TESTING_Peer * | 62 | struct GNUNET_TESTING_Peer * |
63 | GNUNET_TESTING_peer_create_with_id_ (uint32_t unique_id, | 63 | GNUNET_TESTING_peer_create_with_id_ (uint32_t unique_id, |
64 | struct GNUNET_TESTING_Controller *controller, | 64 | struct GNUNET_TESTING_Controller *controller, |
65 | struct GNUNET_TESTING_Host *host, | 65 | struct GNUNET_TESTING_Host *host, |
66 | const struct GNUNET_CONFIGURATION_Handle *cfg); | 66 | const struct GNUNET_CONFIGURATION_Handle *cfg); |
67 | 67 | ||
diff --git a/src/testing/new_testing_api_testbed.c b/src/testing/new_testing_api_testbed.c index a86b8a237..e027043b9 100644 --- a/src/testing/new_testing_api_testbed.c +++ b/src/testing/new_testing_api_testbed.c | |||
@@ -59,7 +59,7 @@ GNUNET_TESTING_testbed_create_va (struct GNUNET_TESTING_Controller *controller, | |||
59 | struct GNUNET_TESTING_Host **hosts, | 59 | struct GNUNET_TESTING_Host **hosts, |
60 | unsigned int num_peers, | 60 | unsigned int num_peers, |
61 | const struct GNUNET_CONFIGURATION_Handle *peer_cfg, | 61 | const struct GNUNET_CONFIGURATION_Handle *peer_cfg, |
62 | enum GNUNET_TESTING_Topology underlay_topology, | 62 | enum GNUNET_TESTING_TopologyOption underlay_topology, |
63 | va_list va) | 63 | va_list va) |
64 | { | 64 | { |
65 | GNUNET_break (0); | 65 | GNUNET_break (0); |
@@ -89,7 +89,7 @@ GNUNET_TESTING_testbed_create (struct GNUNET_TESTING_Controller *controller, | |||
89 | struct GNUNET_TESTING_Host **hosts, | 89 | struct GNUNET_TESTING_Host **hosts, |
90 | unsigned int num_peers, | 90 | unsigned int num_peers, |
91 | const struct GNUNET_CONFIGURATION_Handle *peer_cfg, | 91 | const struct GNUNET_CONFIGURATION_Handle *peer_cfg, |
92 | enum GNUNET_TESTING_Topology underlay_topology, | 92 | enum GNUNET_TESTING_TopologyOption underlay_topology, |
93 | ...) | 93 | ...) |
94 | { | 94 | { |
95 | GNUNET_break (0); | 95 | GNUNET_break (0); |