Added $(TESTS_SHELL) at end of TESTS_ENVIRONMENT. This lets the
authorDavid Levine <levinedl@acm.org>
Mon, 7 May 2012 21:45:32 +0000 (16:45 -0500)
committerDavid Levine <levinedl@acm.org>
Mon, 7 May 2012 21:45:32 +0000 (16:45 -0500)
user run the tests using a shell other than the default /bin/sh
by using, e.g., make check TESTS_SHELL=/bin/bash.  Thanks to
Tom Lane <tgl@sss.pgh.pa.us> for suggesting this.

Makefile.am

index 7f6b922..c6ab735 100644 (file)
@@ -36,7 +36,8 @@ auxexecdir = @libdir@
 TESTS_ENVIRONMENT = MH_OBJ_DIR=@abs_builddir@ \
                    MH_TEST_DIR=@abs_builddir@/test/testdir \
                    auxexecdir=$(auxexecdir) bindir=$(bindir) \
-                   mandir=$(mandir) sysconfdir=$(sysconfdir)
+                   mandir=$(mandir) sysconfdir=$(sysconfdir) \
+                   $(TESTS_SHELL) ## Keep at end of TESTS_ENVIRONMENT.
 ##
 ## Important note: the "cleanup" test should always be last
 ##