diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2014-07-23 17:34:06 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2014-07-23 17:34:06 +0000 |
commit | 51d6cd60f93c8adc4d6d44c16beb383ff90e50bf (patch) | |
tree | fcf0d0dd1b138c1cde2995156516e03e87e346db /src/util | |
parent | 3cf8ba0b60f8495892fa76635e9c23555d0a304c (diff) | |
download | gnunet-51d6cd60f93c8adc4d6d44c16beb383ff90e50bf.tar.gz gnunet-51d6cd60f93c8adc4d6d44c16beb383ff90e50bf.zip |
Enable tests to run concurrently.
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/Makefile.am | 94 |
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 | ||
228 | check_PROGRAMS = \ | 228 | check_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 | |||
284 | TESTS = $(check_PROGRAMS) | 284 | TESTS = $(check_PROGRAMS) |
285 | endif | 285 | endif |
286 | 286 | ||
287 | # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart | ||
288 | # sequential execution order for them | ||
289 | TEST_EXTENSIONS = .nc | ||
290 | test_connection.log: test_client.log | ||
291 | test_connection_addressing.log: test_connection.log | ||
292 | test_connection_timeout_no_connect.log: test_connection_addressing.log | ||
293 | test_connection_transmit_cancel.log: test_connection_timeout_no_connect.log | ||
294 | test_connection_receive_cancel.log: test_connection_transmit_cancel.log | ||
295 | test_connection_timeout.log: test_connection_receive_cancel.log | ||
296 | test_mq_client.log: test_connection_timeout.log | ||
297 | test_resolver_api.log: test_mq_client.log | ||
298 | test_server.log: test_resolver_api.log | ||
299 | test_server_disconnect.log: test_server.log | ||
300 | test_server_with_client.log: test_server_disconnect.log | ||
301 | test_server_mst_interrupt.log: test_server_with_client.log | ||
302 | |||
287 | test_bio_SOURCES = \ | 303 | test_bio_SOURCES = \ |
288 | test_bio.c | 304 | test_bio.c |
289 | test_bio_LDADD = \ | 305 | test_bio_LDADD = \ |
@@ -297,9 +313,9 @@ test_os_start_process_LDADD = \ | |||
297 | test_os_start_process_DEPENDENCIES = \ | 313 | test_os_start_process_DEPENDENCIES = \ |
298 | $(WINCAT) | 314 | $(WINCAT) |
299 | 315 | ||
300 | test_client_SOURCES = \ | 316 | test_client_nc_SOURCES = \ |
301 | test_client.c | 317 | test_client.c |
302 | test_client_LDADD = \ | 318 | test_client_nc_LDADD = \ |
303 | $(top_builddir)/src/util/libgnunetutil.la | 319 | $(top_builddir)/src/util/libgnunetutil.la |
304 | 320 | ||
305 | test_common_allocation_SOURCES = \ | 321 | test_common_allocation_SOURCES = \ |
@@ -421,34 +437,34 @@ test_getopt_SOURCES = \ | |||
421 | test_getopt_LDADD = \ | 437 | test_getopt_LDADD = \ |
422 | $(top_builddir)/src/util/libgnunetutil.la | 438 | $(top_builddir)/src/util/libgnunetutil.la |
423 | 439 | ||
424 | test_connection_SOURCES = \ | 440 | test_connection_nc_SOURCES = \ |
425 | test_connection.c | 441 | test_connection.c |
426 | test_connection_LDADD = \ | 442 | test_connection_nc_LDADD = \ |
427 | $(top_builddir)/src/util/libgnunetutil.la | 443 | $(top_builddir)/src/util/libgnunetutil.la |
428 | 444 | ||
429 | test_connection_addressing_SOURCES = \ | 445 | test_connection_addressing_nc_SOURCES = \ |
430 | test_connection_addressing.c | 446 | test_connection_addressing.c |
431 | test_connection_addressing_LDADD = \ | 447 | test_connection_addressing_nc_LDADD = \ |
432 | $(top_builddir)/src/util/libgnunetutil.la | 448 | $(top_builddir)/src/util/libgnunetutil.la |
433 | 449 | ||
434 | test_connection_receive_cancel_SOURCES = \ | 450 | test_connection_receive_cancel_nc_SOURCES = \ |
435 | test_connection_receive_cancel.c | 451 | test_connection_receive_cancel.c |
436 | test_connection_receive_cancel_LDADD = \ | 452 | test_connection_receive_cancel_nc_LDADD = \ |
437 | $(top_builddir)/src/util/libgnunetutil.la | 453 | $(top_builddir)/src/util/libgnunetutil.la |
438 | 454 | ||
439 | test_connection_timeout_SOURCES = \ | 455 | test_connection_timeout_nc_SOURCES = \ |
440 | test_connection_timeout.c | 456 | test_connection_timeout.c |
441 | test_connection_timeout_LDADD = \ | 457 | test_connection_timeout_nc_LDADD = \ |
442 | $(top_builddir)/src/util/libgnunetutil.la | 458 | $(top_builddir)/src/util/libgnunetutil.la |
443 | 459 | ||
444 | test_connection_timeout_no_connect_SOURCES = \ | 460 | test_connection_timeout_no_connect_nc_SOURCES = \ |
445 | test_connection_timeout_no_connect.c | 461 | test_connection_timeout_no_connect.c |
446 | test_connection_timeout_no_connect_LDADD = \ | 462 | test_connection_timeout_no_connect_nc_LDADD = \ |
447 | $(top_builddir)/src/util/libgnunetutil.la | 463 | $(top_builddir)/src/util/libgnunetutil.la |
448 | 464 | ||
449 | test_connection_transmit_cancel_SOURCES = \ | 465 | test_connection_transmit_cancel_nc_SOURCES = \ |
450 | test_connection_transmit_cancel.c | 466 | test_connection_transmit_cancel.c |
451 | test_connection_transmit_cancel_LDADD = \ | 467 | test_connection_transmit_cancel_nc_LDADD = \ |
452 | $(top_builddir)/src/util/libgnunetutil.la | 468 | $(top_builddir)/src/util/libgnunetutil.la |
453 | 469 | ||
454 | test_mq_SOURCES = \ | 470 | test_mq_SOURCES = \ |
@@ -456,9 +472,9 @@ test_mq_SOURCES = \ | |||
456 | test_mq_LDADD = \ | 472 | test_mq_LDADD = \ |
457 | $(top_builddir)/src/util/libgnunetutil.la | 473 | $(top_builddir)/src/util/libgnunetutil.la |
458 | 474 | ||
459 | test_mq_client_SOURCES = \ | 475 | test_mq_client_nc_SOURCES = \ |
460 | test_mq_client.c | 476 | test_mq_client.c |
461 | test_mq_client_LDADD = \ | 477 | test_mq_client_nc_LDADD = \ |
462 | $(top_builddir)/src/util/libgnunetutil.la | 478 | $(top_builddir)/src/util/libgnunetutil.la |
463 | 479 | ||
464 | test_os_network_SOURCES = \ | 480 | test_os_network_SOURCES = \ |
@@ -481,9 +497,9 @@ test_program_SOURCES = \ | |||
481 | test_program_LDADD = \ | 497 | test_program_LDADD = \ |
482 | $(top_builddir)/src/util/libgnunetutil.la | 498 | $(top_builddir)/src/util/libgnunetutil.la |
483 | 499 | ||
484 | test_resolver_api_SOURCES = \ | 500 | test_resolver_api_nc_SOURCES = \ |
485 | test_resolver_api.c | 501 | test_resolver_api.c |
486 | test_resolver_api_LDADD = \ | 502 | test_resolver_api_nc_LDADD = \ |
487 | $(top_builddir)/src/util/libgnunetutil.la | 503 | $(top_builddir)/src/util/libgnunetutil.la |
488 | 504 | ||
489 | test_scheduler_SOURCES = \ | 505 | test_scheduler_SOURCES = \ |
@@ -496,24 +512,24 @@ test_scheduler_delay_SOURCES = \ | |||
496 | test_scheduler_delay_LDADD = \ | 512 | test_scheduler_delay_LDADD = \ |
497 | $(top_builddir)/src/util/libgnunetutil.la | 513 | $(top_builddir)/src/util/libgnunetutil.la |
498 | 514 | ||
499 | test_server_mst_interrupt_SOURCES = \ | 515 | test_server_mst_interrupt_nc_SOURCES = \ |
500 | test_server_mst_interrupt.c | 516 | test_server_mst_interrupt.c |
501 | test_server_mst_interrupt_LDADD = \ | 517 | test_server_mst_interrupt_nc_LDADD = \ |
502 | $(top_builddir)/src/util/libgnunetutil.la | 518 | $(top_builddir)/src/util/libgnunetutil.la |
503 | 519 | ||
504 | test_server_SOURCES = \ | 520 | test_server_nc_SOURCES = \ |
505 | test_server.c | 521 | test_server.c |
506 | test_server_LDADD = \ | 522 | test_server_nc_LDADD = \ |
507 | $(top_builddir)/src/util/libgnunetutil.la | 523 | $(top_builddir)/src/util/libgnunetutil.la |
508 | 524 | ||
509 | test_server_disconnect_SOURCES = \ | 525 | test_server_disconnect_nc_SOURCES = \ |
510 | test_server_disconnect.c | 526 | test_server_disconnect.c |
511 | test_server_disconnect_LDADD = \ | 527 | test_server_disconnect_nc_LDADD = \ |
512 | $(top_builddir)/src/util/libgnunetutil.la | 528 | $(top_builddir)/src/util/libgnunetutil.la |
513 | 529 | ||
514 | test_server_with_client_SOURCES = \ | 530 | test_server_with_client_nc_SOURCES = \ |
515 | test_server_with_client.c | 531 | test_server_with_client.c |
516 | test_server_with_client_LDADD = \ | 532 | test_server_with_client_nc_LDADD = \ |
517 | $(top_builddir)/src/util/libgnunetutil.la | 533 | $(top_builddir)/src/util/libgnunetutil.la |
518 | 534 | ||
519 | test_server_with_client_unix_SOURCES = \ | 535 | test_server_with_client_unix_SOURCES = \ |