diff options
author | Darren Tucker <dtucker@zip.com.au> | 2005-03-07 08:25:53 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2005-03-07 08:25:53 +0100 |
commit | 68f7213a2cb1fa846d8eab215f1cde35e2abc20b (patch) | |
tree | 8a5b81c209a787b9eca6650b2f73c9df829e4001 /regress | |
parent | - (dtucker) OpenBSD CVS Sync (regress/) (diff) | |
download | openssh-68f7213a2cb1fa846d8eab215f1cde35e2abc20b.tar.xz openssh-68f7213a2cb1fa846d8eab215f1cde35e2abc20b.zip |
- fgsch@cvs.openbsd.org 2004/12/10 01:31:30
[Makefile sftp-glob.sh]
some globbing regress; prompted and ok djm@
Diffstat (limited to 'regress')
-rw-r--r-- | regress/sftp-glob.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/regress/sftp-glob.sh b/regress/sftp-glob.sh new file mode 100644 index 000000000..e238356a2 --- /dev/null +++ b/regress/sftp-glob.sh @@ -0,0 +1,28 @@ +# $OpenBSD: sftp-glob.sh,v 1.1 2004/12/10 01:31:30 fgsch Exp $ +# Placed in the Public Domain. + +tid="sftp glob" + +BASE=${OBJ}/glob +DIR=${BASE}/dir +DATA=${DIR}/file + +rm -rf ${BASE} +mkdir -p ${DIR} +touch ${DATA} + +verbose "$tid: ls file" +echo "ls -l ${DIR}/fil*" | ${SFTP} -P ${SFTPSERVER} 2>/dev/null | \ + grep ${DATA} >/dev/null 2>&1 +if [ $? -ne 0 ]; then + fail "globbed ls file failed" +fi + +verbose "$tid: ls dir" +echo "ls -l ${BASE}/d*" | ${SFTP} -P ${SFTPSERVER} 2>/dev/null | \ + grep file >/dev/null 2>&1 +if [ $? -ne 0 ]; then + fail "globbed ls dir failed" +fi + +rm -rf ${BASE} |