[regress/agent-ptrace.sh regress/dynamic-forward.sh

regress/sftp-cmds.sh regress/stderr-after-eof.sh regress/test-exec.sh]
no longer depends on which(1). patch by dtucker@
This commit is contained in:
Tim Rice 2003-09-11 22:32:17 -07:00
parent d546a84ef6
commit 23ee359b08
6 changed files with 29 additions and 11 deletions

View File

@ -5,6 +5,9 @@
- (tim) [configure.ac] Move libgen tests to before libwrap to unbreak
UnixWare 2.03 using --with-tcp-wrappers.
- (tim) [configure.ac] Prefer setuid/setgid on UnixWare and Open Server.
- (tim) [regress/agent-ptrace.sh regress/dynamic-forward.sh
regress/sftp-cmds.sh regress/stderr-after-eof.sh regress/test-exec.sh]
no longer depends on which(1). patch by dtucker@
20030910
- (dtucker) [configure.ac] Bug #636: Add support for Cray's new X1 machine.
@ -1067,4 +1070,4 @@
- Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
Report from murple@murple.net, diagnosis from dtucker@zip.com.au
$Id: ChangeLog,v 1.2981 2003/09/12 05:24:36 tim Exp $
$Id: ChangeLog,v 1.2982 2003/09/12 05:32:17 tim Exp $

View File

@ -3,7 +3,7 @@
tid="disallow agent ptrace attach"
if [ -x "`which uname 2>&1`" ]; then
if have_prog uname ; then
case `uname` in
Linux|HP-UX|SunOS|NetBSD|AIX|CYGWIN*)
echo "skipped (not supported on this platform)"
@ -12,7 +12,7 @@ if [ -x "`which uname 2>&1`" ]; then
esac
fi
if [ ! -x "`which gdb 2>&1`" ]; then
if ! have_prog gdb ; then
echo "skipped (gdb not found)"
exit 0
fi

View File

@ -7,9 +7,9 @@ PORT=4242
FWDPORT=4243
DATA=/bin/ls${EXEEXT}
if [ -x "`which nc 2>&1`" ] && nc -h 2>&1 | grep "x proxy address" >/dev/null; then
if have_prog nc && nc -h 2>&1 | grep "x proxy address" >/dev/null; then
proxycmd="nc -x 127.0.0.1:$FWDPORT -X"
elif [ -x "`which connect 2>&1`" ]; then
elif have_prog connect; then
proxycmd="connect -S 127.0.0.1:$FWDPORT -"
else
echo "skipped (no suitable ProxyCommand found)"

View File

@ -17,7 +17,7 @@ do
fi
done
if [ -x "`which uname 2>&1`" ]
if have_prog uname
then
case `uname` in
CYGWIN*)

View File

@ -7,13 +7,13 @@ DATA=/etc/motd
DATA=${OBJ}/data
COPY=${OBJ}/copy
if [ -x "`which md5sum 2>&1`" ]; then
if have_prog md5sum; then
CHECKSUM=md5sum
elif [ -x "`which openssl 2>&1`" ]; then
elif have_prog openssl; then
CHECKSUM="openssl md5"
elif [ -x "`which cksum 2>&1`" ]; then
elif have_prog cksum; then
CHECKSUM=cksum
elif [ -x "`which sum 2>&1`" ]; then
elif have_prog sum; then
CHECKSUM=sum
else
fatal "No checksum program available, aborting $tid test"

View File

@ -6,7 +6,7 @@ PORT=4242
if [ -x /usr/ucb/whoami ]; then
USER=`/usr/ucb/whoami`
elif [ -x "`which whoami 2>&1`" ]; then
elif whoami >/dev/null 2>&1; then
USER=`whoami`
else
USER=`id -un`
@ -89,6 +89,21 @@ echon()
fi
}
have_prog()
{
saved_IFS="$IFS"
IFS=":"
for i in $PATH
do
if [ -x $i/$1 ]; then
IFS="$saved_IFS"
return 0
fi
done
IFS="$saved_IFS"
return 1
}
cleanup ()
{
if [ -f $PIDFILE ]; then