From e4777b8dc1a2c22247c6fc251bca06ee1d5acefe Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Thu, 8 Sep 2011 10:41:24 +0200 Subject: testsuite: automatize generation of dependencies for tests * tests/gen-test-deps: New script, automatically generates dependencies for the tests. * tests/Makefile.am (EXTRA_DIST): Distribute it. ($(srcdir)/tests-deps.am): New rule. (include $(srcdir)/tests-deps.am): New inclusion. Remove hand-written dependencies for tests. Other related updates. * tests/list-of-tests (tap_with_common_setup_TESTS, tap_other_TESTS): Delete, their content merged back into ... (handwritten_TESTS): ... this. * tests/.gitignore (tests-deps.am): New ignored file. * bootstrap: Generate `tests/tests-deps.am'. --- bootstrap | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bootstrap') diff --git a/bootstrap b/bootstrap index 9fab5f8ae..77509dcbb 100755 --- a/bootstrap +++ b/bootstrap @@ -103,11 +103,14 @@ dosubst m4/amversion.in m4/amversion.m4 # Create temporary replacement for automake. dosubst automake.in automake.tmp -# Create required makefile snippet. +# Create required makefile snippets. cd tests $BOOTSTRAP_SHELL ./gen-wrap-tests > wrap-tests.tmp chmod a-w wrap-tests.tmp mv -f wrap-tests.tmp wrap-tests.am +$PERL ./gen-tests-deps > tests-deps.tmp +chmod a-w tests-deps.tmp +mv -f tests-deps.tmp tests-deps.am cd .. # Run the autotools. -- cgit v1.2.1