diff options
author | Tim Rice <tim@multitalents.net> | 2013-06-02 14:05:48 -0700 |
---|---|---|
committer | Tim Rice <tim@multitalents.net> | 2013-06-02 14:05:48 -0700 |
commit | 5ab9b63468100757479534edeb53f788a61fe08b (patch) | |
tree | d04310ded37296b40bc9df4a1993cab7819ca912 | |
parent | 898ac935e56a7ac5d8b686c590fdb8b7aca27e59 (diff) |
- (tim) [configure.ac regress/Makefile] With rev 1.47 of test-exec.sh we
need a shell that can handle "[ file1 -nt file2 ]". Rather than keep
dealing with shell portability issues in regression tests, we let
configure find us a capable shell on those platforms with an old /bin/sh.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | configure.ac | 10 | ||||
-rw-r--r-- | regress/Makefile | 4 |
3 files changed, 12 insertions, 6 deletions
@@ -12,6 +12,10 @@ | |||
12 | to prevent noise from configure. Patch from Nathan Osman. (bz#2114). | 12 | to prevent noise from configure. Patch from Nathan Osman. (bz#2114). |
13 | - (dtucker) [configure.ac] bz#2111: don't try to use lastlog on Android. | 13 | - (dtucker) [configure.ac] bz#2111: don't try to use lastlog on Android. |
14 | Patch from Nathan Osman. | 14 | Patch from Nathan Osman. |
15 | - (tim) [configure.ac regress/Makefile] With rev 1.47 of test-exec.sh we | ||
16 | need a shell that can handle "[ file1 -nt file2 ]". Rather than keep | ||
17 | dealing with shell portability issues in regression tests, we let | ||
18 | configure find us a capable shell on those platforms with an old /bin/sh. | ||
15 | 19 | ||
16 | 20130601 | 20 | 20130601 |
17 | - (dtucker) [configure.ac openbsd-compat/xcrypt.c] bz#2112: fall back to | 21 | - (dtucker) [configure.ac openbsd-compat/xcrypt.c] bz#2112: fall back to |
diff --git a/configure.ac b/configure.ac index d6c57864c..b8a610d5c 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.ac,v 1.530 2013/06/02 16:03:26 dtucker Exp $ | 1 | # $Id: configure.ac,v 1.531 2013/06/02 21:05:49 tim Exp $ |
2 | # | 2 | # |
3 | # Copyright (c) 1999-2004 Damien Miller | 3 | # Copyright (c) 1999-2004 Damien Miller |
4 | # | 4 | # |
@@ -15,7 +15,7 @@ | |||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
16 | 16 | ||
17 | AC_INIT([OpenSSH], [Portable], [openssh-unix-dev@mindrot.org]) | 17 | AC_INIT([OpenSSH], [Portable], [openssh-unix-dev@mindrot.org]) |
18 | AC_REVISION($Revision: 1.530 $) | 18 | AC_REVISION($Revision: 1.531 $) |
19 | AC_CONFIG_SRCDIR([ssh.c]) | 19 | AC_CONFIG_SRCDIR([ssh.c]) |
20 | AC_LANG([C]) | 20 | AC_LANG([C]) |
21 | 21 | ||
@@ -812,6 +812,7 @@ mips-sony-bsd|mips-sony-newsos4) | |||
812 | SP_MSG="yes" ], ) | 812 | SP_MSG="yes" ], ) |
813 | ], | 813 | ], |
814 | ) | 814 | ) |
815 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
815 | ;; | 816 | ;; |
816 | *-*-sunos4*) | 817 | *-*-sunos4*) |
817 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | 818 | CPPFLAGS="$CPPFLAGS -DSUNOS4" |
@@ -855,6 +856,7 @@ mips-sony-bsd|mips-sony-newsos4) | |||
855 | AC_DEFINE([BROKEN_SETREGID]) | 856 | AC_DEFINE([BROKEN_SETREGID]) |
856 | AC_DEFINE([PASSWD_NEEDS_USERNAME], [1], [must supply username to passwd]) | 857 | AC_DEFINE([PASSWD_NEEDS_USERNAME], [1], [must supply username to passwd]) |
857 | AC_DEFINE([LOCKED_PASSWD_STRING], ["*LK*"]) | 858 | AC_DEFINE([LOCKED_PASSWD_STRING], ["*LK*"]) |
859 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
858 | ;; | 860 | ;; |
859 | # UnixWare 7.x, OpenUNIX 8 | 861 | # UnixWare 7.x, OpenUNIX 8 |
860 | *-*-sysv5*) | 862 | *-*-sysv5*) |
@@ -866,10 +868,10 @@ mips-sony-bsd|mips-sony-newsos4) | |||
866 | AC_DEFINE([BROKEN_SETREUID]) | 868 | AC_DEFINE([BROKEN_SETREUID]) |
867 | AC_DEFINE([BROKEN_SETREGID]) | 869 | AC_DEFINE([BROKEN_SETREGID]) |
868 | AC_DEFINE([PASSWD_NEEDS_USERNAME]) | 870 | AC_DEFINE([PASSWD_NEEDS_USERNAME]) |
871 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
869 | case "$host" in | 872 | case "$host" in |
870 | *-*-sysv5SCO_SV*) # SCO OpenServer 6.x | 873 | *-*-sysv5SCO_SV*) # SCO OpenServer 6.x |
871 | maildir=/var/spool/mail | 874 | maildir=/var/spool/mail |
872 | TEST_SHELL=/u95/bin/sh | ||
873 | AC_DEFINE([BROKEN_LIBIAF], [1], | 875 | AC_DEFINE([BROKEN_LIBIAF], [1], |
874 | [ia_uinfo routines not supported by OS yet]) | 876 | [ia_uinfo routines not supported by OS yet]) |
875 | AC_DEFINE([BROKEN_UPDWTMPX]) | 877 | AC_DEFINE([BROKEN_UPDWTMPX]) |
@@ -910,7 +912,7 @@ mips-sony-bsd|mips-sony-newsos4) | |||
910 | AC_DEFINE([PASSWD_NEEDS_USERNAME]) | 912 | AC_DEFINE([PASSWD_NEEDS_USERNAME]) |
911 | AC_CHECK_FUNCS([getluid setluid]) | 913 | AC_CHECK_FUNCS([getluid setluid]) |
912 | MANTYPE=man | 914 | MANTYPE=man |
913 | TEST_SHELL=ksh | 915 | TEST_SHELL=$SHELL # let configure find us a capable shell |
914 | SKIP_DISABLE_LASTLOG_DEFINE=yes | 916 | SKIP_DISABLE_LASTLOG_DEFINE=yes |
915 | ;; | 917 | ;; |
916 | *-*-unicosmk*) | 918 | *-*-unicosmk*) |
diff --git a/regress/Makefile b/regress/Makefile index b19c7ae22..ab2a6ae7b 100644 --- a/regress/Makefile +++ b/regress/Makefile | |||
@@ -155,14 +155,14 @@ t-exec: ${LTESTS:=.sh} | |||
155 | @if [ "x$?" = "x" ]; then exit 0; fi; \ | 155 | @if [ "x$?" = "x" ]; then exit 0; fi; \ |
156 | for TEST in ""$?; do \ | 156 | for TEST in ""$?; do \ |
157 | echo "run test $${TEST}" ... 1>&2; \ | 157 | echo "run test $${TEST}" ... 1>&2; \ |
158 | (env SUDO="${SUDO}" TEST_ENV=${TEST_ENV} sh ${.CURDIR}/test-exec.sh ${.OBJDIR} ${.CURDIR}/$${TEST}) || exit $$?; \ | 158 | (env SUDO="${SUDO}" TEST_ENV=${TEST_ENV} ${TEST_SHELL} ${.CURDIR}/test-exec.sh ${.OBJDIR} ${.CURDIR}/$${TEST}) || exit $$?; \ |
159 | done | 159 | done |
160 | 160 | ||
161 | t-exec-interop: ${INTEROP_TESTS:=.sh} | 161 | t-exec-interop: ${INTEROP_TESTS:=.sh} |
162 | @if [ "x$?" = "x" ]; then exit 0; fi; \ | 162 | @if [ "x$?" = "x" ]; then exit 0; fi; \ |
163 | for TEST in ""$?; do \ | 163 | for TEST in ""$?; do \ |
164 | echo "run test $${TEST}" ... 1>&2; \ | 164 | echo "run test $${TEST}" ... 1>&2; \ |
165 | (env SUDO="${SUDO}" TEST_ENV=${TEST_ENV} sh ${.CURDIR}/test-exec.sh ${.OBJDIR} ${.CURDIR}/$${TEST}) || exit $$?; \ | 165 | (env SUDO="${SUDO}" TEST_ENV=${TEST_ENV} ${TEST_SHELL} ${.CURDIR}/test-exec.sh ${.OBJDIR} ${.CURDIR}/$${TEST}) || exit $$?; \ |
166 | done | 166 | done |
167 | 167 | ||
168 | # Not run by default | 168 | # Not run by default |