diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-06-10 14:38:05 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-06-10 14:38:05 +0000 |
commit | 7f61d08dcf2e6e895bf01a8c647372c4ef6d04fc (patch) | |
tree | 96f2a3cce839611567e03c19a2857082cd6a51d7 /src/mesh/Makefile.am | |
parent | 2426176ae7761fc909d85377a7f39b67c9d776c9 (diff) | |
download | gnunet-7f61d08dcf2e6e895bf01a8c647372c4ef6d04fc.tar.gz gnunet-7f61d08dcf2e6e895bf01a8c647372c4ef6d04fc.zip |
- add framework for mesh2 mutipeer tests
Diffstat (limited to 'src/mesh/Makefile.am')
-rw-r--r-- | src/mesh/Makefile.am | 46 |
1 files changed, 33 insertions, 13 deletions
diff --git a/src/mesh/Makefile.am b/src/mesh/Makefile.am index 135f2bce3..5b59a4652 100644 --- a/src/mesh/Makefile.am +++ b/src/mesh/Makefile.am | |||
@@ -21,13 +21,12 @@ plugindir = $(libdir)/gnunet | |||
21 | AM_CLFAGS = -g | 21 | AM_CLFAGS = -g |
22 | 22 | ||
23 | if HAVE_EXPERIMENTAL | 23 | if HAVE_EXPERIMENTAL |
24 | noinst_LIB_EXP = libgnunetmesh2test.a | ||
24 | EXP_LIB = libgnunetmesh2.la | 25 | EXP_LIB = libgnunetmesh2.la |
25 | EXP_LIBEXEC = gnunet-service-mesh-new | 26 | EXP_LIBEXEC = gnunet-service-mesh-new |
26 | EXP_TESTS = \ | 27 | EXP_TESTS = \ |
27 | test_mesh2_local | 28 | test_mesh2_local \ |
28 | MESH_DEP = $(top_builddir)/src/mesh/libgnunetmesh2.la | 29 | test_mesh2_small_forward |
29 | else | ||
30 | MESH_DEP = $(top_builddir)/src/mesh/libgnunetmesh.la | ||
31 | endif | 30 | endif |
32 | 31 | ||
33 | libexec_PROGRAMS = \ | 32 | libexec_PROGRAMS = \ |
@@ -127,7 +126,7 @@ gnunet_service_mesh_new_LDFLAGS = -lrt | |||
127 | endif | 126 | endif |
128 | 127 | ||
129 | 128 | ||
130 | noinst_LIBRARIES = libgnunetmeshtest.a | 129 | noinst_LIBRARIES = libgnunetmeshtest.a $(noinst_LIB_EXP) |
131 | 130 | ||
132 | libgnunetmeshtest_a_SOURCES = \ | 131 | libgnunetmeshtest_a_SOURCES = \ |
133 | mesh_test_lib.c mesh_test_lib.h | 132 | mesh_test_lib.c mesh_test_lib.h |
@@ -138,6 +137,15 @@ libgnunetmeshtest_a_LIBADD = \ | |||
138 | libgnunetmeshtest_a_DEPENDENCIES = \ | 137 | libgnunetmeshtest_a_DEPENDENCIES = \ |
139 | libgnunetmesh.la | 138 | libgnunetmesh.la |
140 | 139 | ||
140 | libgnunetmesh2test_a_SOURCES = \ | ||
141 | mesh2_test_lib.c mesh2_test_lib.h | ||
142 | libgnunetmesh2test_a_LIBADD = \ | ||
143 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
144 | $(top_builddir)/src/testbed/libgnunettestbed.la \ | ||
145 | $(top_builddir)/src/mesh/libgnunetmesh2.la | ||
146 | libgnunetmesh2test_a_DEPENDENCIES = \ | ||
147 | libgnunetmesh2.la | ||
148 | |||
141 | 149 | ||
142 | check_PROGRAMS = \ | 150 | check_PROGRAMS = \ |
143 | test_mesh_api \ | 151 | test_mesh_api \ |
@@ -162,7 +170,7 @@ test_mesh_api_SOURCES = \ | |||
162 | test_mesh_api_LDADD = \ | 170 | test_mesh_api_LDADD = \ |
163 | $(top_builddir)/src/util/libgnunetutil.la \ | 171 | $(top_builddir)/src/util/libgnunetutil.la \ |
164 | $(top_builddir)/src/testing/libgnunettesting.la \ | 172 | $(top_builddir)/src/testing/libgnunettesting.la \ |
165 | $(MESH_DEP) | 173 | $(top_builddir)/src/mesh/libgnunetmesh.la |
166 | test_mesh_api_DEPENDENCIES = \ | 174 | test_mesh_api_DEPENDENCIES = \ |
167 | libgnunetmesh.la \ | 175 | libgnunetmesh.la \ |
168 | $(top_builddir)/src/util/libgnunetutil.la | 176 | $(top_builddir)/src/util/libgnunetutil.la |
@@ -273,15 +281,27 @@ test_mesh_small_speed_nobuf_backwards_LDADD = $(ld_mesh_test_lib) | |||
273 | test_mesh_small_speed_nobuf_backwards_DEPENDENCIES = $(dep_mesh_test_lib) | 281 | test_mesh_small_speed_nobuf_backwards_DEPENDENCIES = $(dep_mesh_test_lib) |
274 | 282 | ||
275 | 283 | ||
276 | test_mesh2_local_SOURCES = \ | 284 | ld_mesh2_test_lib = \ |
277 | test_mesh2_local.c | 285 | $(top_builddir)/src/mesh/libgnunetmesh2test.a \ |
278 | test_mesh2_local_LDADD = \ | 286 | $(top_builddir)/src/mesh/libgnunetmesh2.la \ |
279 | $(top_builddir)/src/util/libgnunetutil.la \ | 287 | $(top_builddir)/src/testbed/libgnunettestbed.la \ |
280 | $(top_builddir)/src/testing/libgnunettesting.la \ | 288 | $(top_builddir)/src/util/libgnunetutil.la |
281 | $(MESH_DEP) | 289 | |
282 | test_mesh2_local_DEPENDENCIES = \ | 290 | dep_mesh2_test_lib = \ |
291 | libgnunetmesh2test.a \ | ||
283 | libgnunetmesh2.la | 292 | libgnunetmesh2.la |
284 | 293 | ||
294 | test_mesh2_local_SOURCES = \ | ||
295 | test_mesh2_local.c | ||
296 | test_mesh2_local_LDADD = $(ld_mesh2_test_lib) | ||
297 | test_mesh2_local_DEPENDENCIES = $(dep_mesh2_test_lib) | ||
298 | |||
299 | test_mesh2_small_forward_SOURCES = \ | ||
300 | test_mesh2_small.c | ||
301 | test_mesh2_small_forward_LDADD = $(ld_mesh2_test_lib) | ||
302 | test_mesh2_small_forward_DEPENDENCIES = $(dep_mesh2_test_lib) | ||
303 | |||
304 | |||
285 | if ENABLE_TEST_RUN | 305 | if ENABLE_TEST_RUN |
286 | TESTS = \ | 306 | TESTS = \ |
287 | $(EXP_TESTS) \ | 307 | $(EXP_TESTS) \ |