check-local: check-tests-syntax
.PHONY: check-tests-syntax
+ # Recipes with a trailing backslash character (possibly followed by
+ # blank characters only) can cause spurious syntax errors with at
+ # least older bash versions (e.g., bash 2.05b), and can be potentially
+ # be unportable to other weaker shells. Run the testsuite in a way
+ # that helps catching such problems in Automake-generated recipes.
+ # See automake bug#10436.
+ check-no-trailing-backslash-in-recipes:
+ $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) check \
+ CONFIG_SHELL='$(abs_top_builddir)/t/ax/shell-no-trail-bslash'
+ .PHONY: check-no-trailing-backslash-in-recipes
+
## Checking the list of tests.
-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.