Merge branch 'maint'
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 26 Jul 2012 16:16:47 +0000 (18:16 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 26 Jul 2012 16:16:47 +0000 (18:16 +0200)
* maint: (38 commits)
  maintcheck: fixup list of files in $(xdefs)
  tests: never source test-defs.sh directly, source test-lib.sh instead
  runtest: sanitize test environment
  tests: remove an obsolescent self test
  tests: "am_using_tap=yes" -> "am_test_protocol=tap"
  tests: protect test libs against multiple inclusion
  configure: testsuite shell can return early from "dot-sourced" files
  tests: move sanitization and "Bournification" in the generic test lib
  tests: source test defs in the generic test lib
  test defs: no need to re-add $srcdir/t/ax to $PATH
  tests: split test libs into "generic" and "automake-specific"
  test setup: move actual calling of testsuite setup in ./defs
  test setup: merge definitions of function for simple tests
  test init: refactor: new function 'am_test_setup'
  test init: refactor: move displaying of debugging info later
  test init: refactor: new function 'am_setup_testdir'
  test init: refactor: new function 'am_set_exit_traps'
  configure: testsuite shell set exit traps in shell functions
  test init: refactor: new function 'am_exit_trap'
  test init: refactor: new function 'process_requirements'
  ...

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
1  2 
.gitignore
Makefile.am
configure.ac
syntax-checks.mk
t/ax/am-test-lib.sh
t/list-of-tests.mk
t/tap-realtime.sh

diff --cc .gitignore
Simple merge
diff --cc Makefile.am
@@@ -374,18 -392,20 +387,25 @@@ EXTRA_DIST += gen-testsuite-par
  $(generated_TESTS): $(srcdir)/gen-testsuite-part
  $(srcdir)/t/testsuite-part.am: $(srcdir)/gen-testsuite-part Makefile.am
  
- # Static dependencies valid for each test case.
- check_SCRIPTS = t/wrap/aclocal-$(APIVERSION) t/wrap/automake-$(APIVERSION)
- dist_check_DATA = \
-   t/ax/test-init.sh  \
-   t/ax/plain-functions.sh  \
 +# Hand-written tests for stuff in 'contrib/'.
 +include $(srcdir)/contrib/t/local.am
 +TESTS += $(contrib_TESTS)
 +EXTRA_DIST += $(contrib_TESTS)
 +
+ # Static dependencies valid for each test case (also further
+ # extended later).  Note that use 'noinst_' rather than 'check_'
+ # as the prefix, because we really want them to be built by
+ # "make all".  This makes it easier to run the test cases by
+ # hand after having simply configured and built the package.
+ nodist_noinst_SCRIPTS = \
+   t/wrap/aclocal-$(APIVERSION) \
+   t/wrap/automake-$(APIVERSION)
+ dist_noinst_DATA = \
+   t/ax/test-lib.sh \
+   t/ax/am-test-lib.sh \
    t/ax/tap-functions.sh
- nodist_check_DATA = defs-static
  
  # Few more static dependencies.
  t/distcheck-missing-m4.log: t/ax/distcheck-hook-m4.am
@@@ -462,7 -483,7 +483,7 @@@ check-local: check-tests-synta
  .PHONY: check-tests-syntax
  
  ## Checking the list of tests.
- test_subdirs = t t/pm t/perf contrib/t
 -test_subdirs = t t/pm
++test_subdirs = t t/pm contrib/t
  include $(srcdir)/t/CheckListOfTests.am
  
  # Run the testsuite with the installed aclocal and automake.
diff --cc configure.ac
Simple merge
Simple merge
Simple merge
Simple merge
@@@ -53,10 -53,8 +53,10 @@@ f
  
  cat > Makefile.am << 'END'
  TESTS = all.test
 +AM_COLOR_TESTS= no
  END
- . "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
 +
+ . tap-setup.sh
  
  cat > all.test <<'END'
  #! /bin/sh