diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2004-12-10 01:31:31 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2004-12-10 01:31:31 +0000 |
commit | b86ef59b5f7ce62cd5a2716fb9813e4f808c3de6 (patch) | |
tree | 5497cfa0c9d6f86c5c814bee37574b59f007761b /regress/usr.bin | |
parent | d365004526fcddb72ec96fab5ea4076b1eee0c5a (diff) |
some globbing regress; prompted and ok djm@
Diffstat (limited to 'regress/usr.bin')
-rw-r--r-- | regress/usr.bin/ssh/Makefile | 3 | ||||
-rw-r--r-- | regress/usr.bin/ssh/sftp-glob.sh | 28 |
2 files changed, 30 insertions, 1 deletions
diff --git a/regress/usr.bin/ssh/Makefile b/regress/usr.bin/ssh/Makefile index 80d68fcc394..63de3c643d7 100644 --- a/regress/usr.bin/ssh/Makefile +++ b/regress/usr.bin/ssh/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.33 2004/10/29 23:59:22 djm Exp $ +# $OpenBSD: Makefile,v 1.34 2004/12/10 01:31:30 fgsch Exp $ REGRESS_TARGETS= t1 t2 t3 t4 t5 t6 t7 @@ -31,6 +31,7 @@ LTESTS= connect \ sftp-cmds \ sftp-badcmds \ sftp-batch \ + sftp-glob \ reconfigure \ dynamic-forward \ forwarding \ diff --git a/regress/usr.bin/ssh/sftp-glob.sh b/regress/usr.bin/ssh/sftp-glob.sh new file mode 100644 index 00000000000..e238356a21f --- /dev/null +++ b/regress/usr.bin/ssh/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} |