diff options
author | Darren Tucker <dtucker@zip.com.au> | 2003-09-04 06:54:39 +0200 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2003-09-04 06:54:39 +0200 |
commit | c2c4223ed037375ac73a55a3b75f9154fe9c6037 (patch) | |
tree | f3ffad4d128f14baec612891c5a983d1ae85c844 | |
parent | - [regress/stderr-after-eof.sh] Search for a usable checksum program. (diff) | |
download | openssh-c2c4223ed037375ac73a55a3b75f9154fe9c6037.tar.xz openssh-c2c4223ed037375ac73a55a3b75f9154fe9c6037.zip |
- [regress/sftp-badcmds.sh regress/sftp-cmds.sh regress/sftp.sh
regress/ssh-com-client.sh regress/ssh-com-sftp.sh regress/stderr-data.sh
regress/transfer.sh] Use ${EXEEXT} where appropriate.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | regress/sftp-badcmds.sh | 4 | ||||
-rw-r--r-- | regress/sftp-cmds.sh | 18 | ||||
-rw-r--r-- | regress/sftp.sh | 2 | ||||
-rw-r--r-- | regress/ssh-com-client.sh | 2 | ||||
-rw-r--r-- | regress/ssh-com-sftp.sh | 2 | ||||
-rw-r--r-- | regress/stderr-data.sh | 2 | ||||
-rw-r--r-- | regress/transfer.sh | 2 |
8 files changed, 20 insertions, 17 deletions
@@ -11,6 +11,9 @@ it). The sparse file will take less disk space too. - [regress/sftp-cmds.sh] Ensure file used for test are readable. - [regress/stderr-after-eof.sh] Search for a usable checksum program. + - [regress/sftp-badcmds.sh regress/sftp-cmds.sh regress/sftp.sh + regress/ssh-com-client.sh regress/ssh-com-sftp.sh regress/stderr-data.sh + regress/transfer.sh] Use ${EXEEXT} where appropriate. 20030903 - (djm) OpenBSD CVS Sync @@ -1001,4 +1004,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.2948 2003/09/04 04:32:02 dtucker Exp $ +$Id: ChangeLog,v 1.2949 2003/09/04 04:54:39 dtucker Exp $ diff --git a/regress/sftp-badcmds.sh b/regress/sftp-badcmds.sh index ca46909c0..4fe32effa 100644 --- a/regress/sftp-badcmds.sh +++ b/regress/sftp-badcmds.sh @@ -3,8 +3,8 @@ tid="sftp invalid commands" -DATA=/bin/ls -DATA2=/bin/cat +DATA=/bin/ls${EXEEXT} +DATA2=/bin/cat${EXEEXT} NONEXIST=/NONEXIST.$$ COPY=${OBJ}/copy GLOBFILES=`(cd /bin;echo l*)` diff --git a/regress/sftp-cmds.sh b/regress/sftp-cmds.sh index a7d552972..c747988d1 100644 --- a/regress/sftp-cmds.sh +++ b/regress/sftp-cmds.sh @@ -7,7 +7,7 @@ tid="sftp commands" -DATA=/bin/ls +DATA=/bin/ls${EXEEXT} COPY=${OBJ}/copy # test that these files are readable! for i in `(cd /bin;echo l*)` @@ -70,7 +70,7 @@ rm -f ${COPY}.dd/* verbose "$tid: get to directory" echo "get $DATA ${COPY}.dd" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ || fail "get failed" -cmp $DATA ${COPY}.dd/ls || fail "corrupted copy after get" +cmp $DATA ${COPY}.dd/`basename $DATA` || fail "corrupted copy after get" rm -f ${COPY}.dd/* verbose "$tid: glob get to directory" @@ -82,13 +82,13 @@ done rm -f ${COPY}.dd/* verbose "$tid: get to local dir" -echo "lcd ${COPY}.dd\nget $DATA" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ +(echo "lcd ${COPY}.dd"; echo "get $DATA" ) | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ || fail "get failed" -cmp $DATA ${COPY}.dd/ls || fail "corrupted copy after get" +cmp $DATA ${COPY}.dd/`basename $DATA` || fail "corrupted copy after get" rm -f ${COPY}.dd/* verbose "$tid: glob get to local dir" -echo "lcd ${COPY}.dd\nget /bin/l*" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ +(echo "lcd ${COPY}.dd"; echo "get /bin/l*") | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ || fail "get failed" for x in $GLOBFILES; do cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after get" @@ -110,7 +110,7 @@ rm -f ${COPY}.dd/* verbose "$tid: put to directory" echo "put $DATA ${COPY}.dd" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ || fail "put failed" -cmp $DATA ${COPY}.dd/ls || fail "corrupted copy after put" +cmp $DATA ${COPY}.dd/`basename $DATA` || fail "corrupted copy after put" rm -f ${COPY}.dd/* verbose "$tid: glob put to directory" @@ -122,13 +122,13 @@ done rm -f ${COPY}.dd/* verbose "$tid: put to local dir" -echo "cd ${COPY}.dd\nput $DATA" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ +(echo "cd ${COPY}.dd"; echo "put $DATA") | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ || fail "put failed" -cmp $DATA ${COPY}.dd/ls || fail "corrupted copy after put" +cmp $DATA ${COPY}.dd/`basename $DATA` || fail "corrupted copy after put" rm -f ${COPY}.dd/* verbose "$tid: glob put to local dir" -echo "cd ${COPY}.dd\nput /bin/l*" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ +(echo "cd ${COPY}.dd"; echo "put /bin/l*") | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ || fail "put failed" for x in $GLOBFILES; do cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after put" diff --git a/regress/sftp.sh b/regress/sftp.sh index e8d473123..6ed4e9379 100644 --- a/regress/sftp.sh +++ b/regress/sftp.sh @@ -3,7 +3,7 @@ tid="basic sftp put/get" -DATA=/bin/ls +DATA=/bin/ls{EXEEXT} COPY=${OBJ}/copy BUFFERSIZE="5 1000 32000 64000" diff --git a/regress/ssh-com-client.sh b/regress/ssh-com-client.sh index 809736238..fc953228e 100644 --- a/regress/ssh-com-client.sh +++ b/regress/ssh-com-client.sh @@ -64,7 +64,7 @@ EOF # we need a real server (no ProxyConnect option) start_sshd -DATA=/bin/ls +DATA=/bin/ls${EXEEXT} COPY=${OBJ}/copy rm -f ${COPY} diff --git a/regress/ssh-com-sftp.sh b/regress/ssh-com-sftp.sh index 963b40432..760cc9057 100644 --- a/regress/ssh-com-sftp.sh +++ b/regress/ssh-com-sftp.sh @@ -3,7 +3,7 @@ tid="basic sftp put/get with ssh.com server" -DATA=/bin/ls +DATA=/bin/ls${EXEEXT} COPY=${OBJ}/copy BUFFERSIZE="5 1000 32000 64000" diff --git a/regress/stderr-data.sh b/regress/stderr-data.sh index 0157690b0..1daf79bb5 100644 --- a/regress/stderr-data.sh +++ b/regress/stderr-data.sh @@ -3,7 +3,7 @@ tid="stderr data transfer" -DATA=/bin/ls +DATA=/bin/ls${EXEEXT} COPY=${OBJ}/copy rm -f ${COPY} diff --git a/regress/transfer.sh b/regress/transfer.sh index 31cdc0ce3..13ea367d5 100644 --- a/regress/transfer.sh +++ b/regress/transfer.sh @@ -3,7 +3,7 @@ tid="transfer data" -DATA=/bin/ls +DATA=/bin/ls${EXEEXT} COPY=${OBJ}/copy for p in 1 2; do |