aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2014-07-23 17:34:06 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2014-07-23 17:34:06 +0000
commit51d6cd60f93c8adc4d6d44c16beb383ff90e50bf (patch)
treefcf0d0dd1b138c1cde2995156516e03e87e346db /src/util
parent3cf8ba0b60f8495892fa76635e9c23555d0a304c (diff)
downloadgnunet-51d6cd60f93c8adc4d6d44c16beb383ff90e50bf.tar.gz
gnunet-51d6cd60f93c8adc4d6d44c16beb383ff90e50bf.zip
Enable tests to run concurrently.
Diffstat (limited to 'src/util')
-rw-r--r--src/util/Makefile.am94
1 files changed, 55 insertions, 39 deletions
diff --git a/src/util/Makefile.am b/src/util/Makefile.am
index d4b0bb2e9..3d0632258 100644
--- a/src/util/Makefile.am
+++ b/src/util/Makefile.am
@@ -227,7 +227,7 @@ endif
227 227
228check_PROGRAMS = \ 228check_PROGRAMS = \
229 test_bio \ 229 test_bio \
230 test_client \ 230 test_client.nc \
231 test_common_allocation \ 231 test_common_allocation \
232 test_common_endian \ 232 test_common_endian \
233 test_common_logging \ 233 test_common_logging \
@@ -250,25 +250,25 @@ check_PROGRAMS = \
250 test_crypto_random \ 250 test_crypto_random \
251 test_disk \ 251 test_disk \
252 test_getopt \ 252 test_getopt \
253 test_connection \ 253 test_connection.nc \
254 test_connection_addressing \ 254 test_connection_addressing.nc \
255 test_connection_receive_cancel \ 255 test_connection_receive_cancel.nc \
256 test_connection_timeout \ 256 test_connection_timeout.nc \
257 test_connection_timeout_no_connect \ 257 test_connection_timeout_no_connect.nc \
258 test_connection_transmit_cancel \ 258 test_connection_transmit_cancel.nc \
259 test_mq \ 259 test_mq \
260 test_mq_client \ 260 test_mq_client.nc \
261 test_os_network \ 261 test_os_network \
262 test_peer \ 262 test_peer \
263 test_plugin \ 263 test_plugin \
264 test_program \ 264 test_program \
265 test_resolver_api \ 265 test_resolver_api.nc \
266 test_scheduler \ 266 test_scheduler \
267 test_scheduler_delay \ 267 test_scheduler_delay \
268 test_server_mst_interrupt \ 268 test_server.nc \
269 test_server \ 269 test_server_disconnect.nc \
270 test_server_disconnect \ 270 test_server_with_client.nc \
271 test_server_with_client \ 271 test_server_mst_interrupt.nc \
272 $(SERVER_CLIENT_UNIX) \ 272 $(SERVER_CLIENT_UNIX) \
273 test_service \ 273 test_service \
274 test_strings \ 274 test_strings \
@@ -284,6 +284,22 @@ AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PAT
284TESTS = $(check_PROGRAMS) 284TESTS = $(check_PROGRAMS)
285endif 285endif
286 286
287# Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
288# sequential execution order for them
289TEST_EXTENSIONS = .nc
290test_connection.log: test_client.log
291test_connection_addressing.log: test_connection.log
292test_connection_timeout_no_connect.log: test_connection_addressing.log
293test_connection_transmit_cancel.log: test_connection_timeout_no_connect.log
294test_connection_receive_cancel.log: test_connection_transmit_cancel.log
295test_connection_timeout.log: test_connection_receive_cancel.log
296test_mq_client.log: test_connection_timeout.log
297test_resolver_api.log: test_mq_client.log
298test_server.log: test_resolver_api.log
299test_server_disconnect.log: test_server.log
300test_server_with_client.log: test_server_disconnect.log
301test_server_mst_interrupt.log: test_server_with_client.log
302
287test_bio_SOURCES = \ 303test_bio_SOURCES = \
288 test_bio.c 304 test_bio.c
289test_bio_LDADD = \ 305test_bio_LDADD = \
@@ -297,9 +313,9 @@ test_os_start_process_LDADD = \
297test_os_start_process_DEPENDENCIES = \ 313test_os_start_process_DEPENDENCIES = \
298 $(WINCAT) 314 $(WINCAT)
299 315
300test_client_SOURCES = \ 316test_client_nc_SOURCES = \
301 test_client.c 317 test_client.c
302test_client_LDADD = \ 318test_client_nc_LDADD = \
303 $(top_builddir)/src/util/libgnunetutil.la 319 $(top_builddir)/src/util/libgnunetutil.la
304 320
305test_common_allocation_SOURCES = \ 321test_common_allocation_SOURCES = \
@@ -421,34 +437,34 @@ test_getopt_SOURCES = \
421test_getopt_LDADD = \ 437test_getopt_LDADD = \
422 $(top_builddir)/src/util/libgnunetutil.la 438 $(top_builddir)/src/util/libgnunetutil.la
423 439
424test_connection_SOURCES = \ 440test_connection_nc_SOURCES = \
425 test_connection.c 441 test_connection.c
426test_connection_LDADD = \ 442test_connection_nc_LDADD = \
427 $(top_builddir)/src/util/libgnunetutil.la 443 $(top_builddir)/src/util/libgnunetutil.la
428 444
429test_connection_addressing_SOURCES = \ 445test_connection_addressing_nc_SOURCES = \
430 test_connection_addressing.c 446 test_connection_addressing.c
431test_connection_addressing_LDADD = \ 447test_connection_addressing_nc_LDADD = \
432 $(top_builddir)/src/util/libgnunetutil.la 448 $(top_builddir)/src/util/libgnunetutil.la
433 449
434test_connection_receive_cancel_SOURCES = \ 450test_connection_receive_cancel_nc_SOURCES = \
435 test_connection_receive_cancel.c 451 test_connection_receive_cancel.c
436test_connection_receive_cancel_LDADD = \ 452test_connection_receive_cancel_nc_LDADD = \
437 $(top_builddir)/src/util/libgnunetutil.la 453 $(top_builddir)/src/util/libgnunetutil.la
438 454
439test_connection_timeout_SOURCES = \ 455test_connection_timeout_nc_SOURCES = \
440 test_connection_timeout.c 456 test_connection_timeout.c
441test_connection_timeout_LDADD = \ 457test_connection_timeout_nc_LDADD = \
442 $(top_builddir)/src/util/libgnunetutil.la 458 $(top_builddir)/src/util/libgnunetutil.la
443 459
444test_connection_timeout_no_connect_SOURCES = \ 460test_connection_timeout_no_connect_nc_SOURCES = \
445 test_connection_timeout_no_connect.c 461 test_connection_timeout_no_connect.c
446test_connection_timeout_no_connect_LDADD = \ 462test_connection_timeout_no_connect_nc_LDADD = \
447 $(top_builddir)/src/util/libgnunetutil.la 463 $(top_builddir)/src/util/libgnunetutil.la
448 464
449test_connection_transmit_cancel_SOURCES = \ 465test_connection_transmit_cancel_nc_SOURCES = \
450 test_connection_transmit_cancel.c 466 test_connection_transmit_cancel.c
451test_connection_transmit_cancel_LDADD = \ 467test_connection_transmit_cancel_nc_LDADD = \
452 $(top_builddir)/src/util/libgnunetutil.la 468 $(top_builddir)/src/util/libgnunetutil.la
453 469
454test_mq_SOURCES = \ 470test_mq_SOURCES = \
@@ -456,9 +472,9 @@ test_mq_SOURCES = \
456test_mq_LDADD = \ 472test_mq_LDADD = \
457 $(top_builddir)/src/util/libgnunetutil.la 473 $(top_builddir)/src/util/libgnunetutil.la
458 474
459test_mq_client_SOURCES = \ 475test_mq_client_nc_SOURCES = \
460 test_mq_client.c 476 test_mq_client.c
461test_mq_client_LDADD = \ 477test_mq_client_nc_LDADD = \
462 $(top_builddir)/src/util/libgnunetutil.la 478 $(top_builddir)/src/util/libgnunetutil.la
463 479
464test_os_network_SOURCES = \ 480test_os_network_SOURCES = \
@@ -481,9 +497,9 @@ test_program_SOURCES = \
481test_program_LDADD = \ 497test_program_LDADD = \
482 $(top_builddir)/src/util/libgnunetutil.la 498 $(top_builddir)/src/util/libgnunetutil.la
483 499
484test_resolver_api_SOURCES = \ 500test_resolver_api_nc_SOURCES = \
485 test_resolver_api.c 501 test_resolver_api.c
486test_resolver_api_LDADD = \ 502test_resolver_api_nc_LDADD = \
487 $(top_builddir)/src/util/libgnunetutil.la 503 $(top_builddir)/src/util/libgnunetutil.la
488 504
489test_scheduler_SOURCES = \ 505test_scheduler_SOURCES = \
@@ -496,24 +512,24 @@ test_scheduler_delay_SOURCES = \
496test_scheduler_delay_LDADD = \ 512test_scheduler_delay_LDADD = \
497 $(top_builddir)/src/util/libgnunetutil.la 513 $(top_builddir)/src/util/libgnunetutil.la
498 514
499test_server_mst_interrupt_SOURCES = \ 515test_server_mst_interrupt_nc_SOURCES = \
500 test_server_mst_interrupt.c 516 test_server_mst_interrupt.c
501test_server_mst_interrupt_LDADD = \ 517test_server_mst_interrupt_nc_LDADD = \
502 $(top_builddir)/src/util/libgnunetutil.la 518 $(top_builddir)/src/util/libgnunetutil.la
503 519
504test_server_SOURCES = \ 520test_server_nc_SOURCES = \
505 test_server.c 521 test_server.c
506test_server_LDADD = \ 522test_server_nc_LDADD = \
507 $(top_builddir)/src/util/libgnunetutil.la 523 $(top_builddir)/src/util/libgnunetutil.la
508 524
509test_server_disconnect_SOURCES = \ 525test_server_disconnect_nc_SOURCES = \
510 test_server_disconnect.c 526 test_server_disconnect.c
511test_server_disconnect_LDADD = \ 527test_server_disconnect_nc_LDADD = \
512 $(top_builddir)/src/util/libgnunetutil.la 528 $(top_builddir)/src/util/libgnunetutil.la
513 529
514test_server_with_client_SOURCES = \ 530test_server_with_client_nc_SOURCES = \
515 test_server_with_client.c 531 test_server_with_client.c
516test_server_with_client_LDADD = \ 532test_server_with_client_nc_LDADD = \
517 $(top_builddir)/src/util/libgnunetutil.la 533 $(top_builddir)/src/util/libgnunetutil.la
518 534
519test_server_with_client_unix_SOURCES = \ 535test_server_with_client_unix_SOURCES = \