summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2010-03-31 10:56:01 +0200
committerPaolo Bonzini <bonzini@gnu.org>2010-03-31 12:11:30 +0200
commitc4457b18ccaaadeeaa8fbe42a0c6cfd4902b1a33 (patch)
tree8f38229ee72395fa7f5de880313bbddde431a366
parent878b4eca0f802252abed96d1308535c8663f3936 (diff)
downloadgrep-c4457b18ccaaadeeaa8fbe42a0c6cfd4902b1a33.tar.gz
tests: fix on systems with broken sh
* tests/Makefile.am (TESTS_ENVIRONMENT): Adjust coreutils remnants. * tests/bre.sh: Invoke script with $SHELL if defined. * tests/ere.sh: Likewise. * tests/spencer1-locale: Likewise. * tests/spencer1.sh: Likewise.
-rw-r--r--tests/Makefile.am3
-rwxr-xr-xtests/bre.sh2
-rwxr-xr-xtests/ere.sh2
-rwxr-xr-xtests/spencer1-locale2
-rwxr-xr-xtests/spencer1.sh2
5 files changed, 5 insertions, 6 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 242dd6b1..17c675dd 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -116,8 +116,7 @@ TESTS_ENVIRONMENT = \
PACKAGE_BUGREPORT='$(PACKAGE_BUGREPORT)' \
PACKAGE_VERSION=$(PACKAGE_VERSION) \
PERL='$(PERL)' \
- PREFERABLY_POSIX_SHELL='$(PREFERABLY_POSIX_SHELL)' \
- REPLACE_GETCWD=$(REPLACE_GETCWD) \
+ SHELL='$(SHELL)' \
PATH='$(abs_top_builddir)/src$(PATH_SEPARATOR)'"$$PATH" \
; shell_or_perl_
diff --git a/tests/bre.sh b/tests/bre.sh
index 0a1153bf..ee5ca938 100755
--- a/tests/bre.sh
+++ b/tests/bre.sh
@@ -14,5 +14,5 @@ failures=0
${AWK-awk} -f $srcdir/bre.awk $srcdir/bre.tests > bre.script
-sh bre.script && exit $failures
+${SHELL-sh} bre.script && exit $failures
exit 1
diff --git a/tests/ere.sh b/tests/ere.sh
index 2ebdc632..b615bff2 100755
--- a/tests/ere.sh
+++ b/tests/ere.sh
@@ -15,5 +15,5 @@ failures=0
${AWK-awk} -f $srcdir/ere.awk $srcdir/ere.tests > ere.script
-sh ere.script && exit $failures
+${SHELL-sh} ere.script && exit $failures
exit 1
diff --git a/tests/spencer1-locale b/tests/spencer1-locale
index fa9909de..3efe7d4b 100755
--- a/tests/spencer1-locale
+++ b/tests/spencer1-locale
@@ -19,6 +19,6 @@ ${AWK-awk} -v extra_locale=$LOCALE_FR_UTF8 \
-f "$abs_srcdir/spencer1-locale.awk" "$abs_srcdir/spencer1.tests" \
> spencer1-locale.script || fail=1
-sh spencer1-locale.script || fail=1
+${SHELL-sh} spencer1-locale.script || fail=1
Exit $fail
diff --git a/tests/spencer1.sh b/tests/spencer1.sh
index 0bd6bd1b..f86909ee 100755
--- a/tests/spencer1.sh
+++ b/tests/spencer1.sh
@@ -15,5 +15,5 @@ failures=0
${AWK-awk} -f $srcdir/spencer1.awk $srcdir/spencer1.tests > spencer1.script
-sh spencer1.script && exit $failures
+${SHELL-sh} spencer1.script && exit $failures
exit 1