Use the configured system shell in tests.

* Makefile.am (AM_TESTS_ENVIRONMENT): New variable.
* tests/redirects.org (Files opened for redirect can be executed
immediately): Use an environment variable instead of hard-coding
'/bin/sh'.
This commit is contained in:
Timothy Sample 2020-02-06 20:26:57 -05:00
parent b8c29ebe6c
commit 25cd5ac5af
2 changed files with 2 additions and 1 deletions

View File

@ -121,6 +121,7 @@ override $(srcdir)/doc/version.texi:
# Tests
#######
AM_TESTS_ENVIRONMENT = SYSTEM_SHELL='$(SHELL)'; export SYSTEM_SHELL;
TEST_EXTENSIONS = .scm .org
SCM_LOG_COMPILER = $(top_builddir)/pre-inst-env $(GUILE)
AM_SCM_LOG_FLAGS = --no-auto-compile

View File

@ -156,7 +156,7 @@
:script:
#+begin_src sh
cat > $TEST_TMP/foo.sh <<EOF
#!/bin/sh
#!$SYSTEM_SHELL
echo foo
EOF
chmod +x $TEST_TMP/foo.sh