]> git.pond.sub.org Git - empserver/commitdiff
Make: Use SHELL to run test scripts, since /bin/sh may suck
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 28 Dec 2020 10:38:20 +0000 (11:38 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 23 Jan 2021 06:08:21 +0000 (07:08 +0100)
The test scripts need a POSIX-compliant Bourne shell.  /bin/sh isn't
on some systems, such as Solaris.  Run them with $(SHELL).

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
Make.mk

diff --git a/Make.mk b/Make.mk
index 072e27f48d471dba5650c678e76d1a0d9930b7c2..29578bcaf0efc2cc2ae57d83ecc251084e902b3d 100644 (file)
--- a/Make.mk
+++ b/Make.mk
@@ -100,7 +100,7 @@ endif
 # Helper for running tests
 # Usage: $(call run-test, SHELL-SCRIPT)
 # Recursively expanded, or else parameters don't work
-run-test = $(call quiet-command, $1 $(srcdir), TEST $1)
+run-test = $(call quiet-command, $(SHELL) -e $1 $(srcdir), TEST $1)
 
 # How to substitute Autoconf output variables
 # Recursively expanded so that $@ and $< work.