+Mon Oct 14 08:05:11 1996 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * gssftp.exp: Test ls and nlist commands. [krb5-appl/108]
+
Wed Aug 14 20:27:36 1996 Tom Yu <tlyu@mit.edu>
* gssftp.exp: Do case insensitive match in case hostname doesn't
pass $testname
}
+ set testname "ls"
+ send "ls $tmppwd/ftp-test\r"
+ expect -re "Opening ASCII mode data connection for .*ls."
+ expect -re ".* $tmppwd/ftp-test"
+ expect "ftp> " {
+ pass $testname
+ }
+
+ set testname "nlist"
+ send "nlist $tmppwd/ftp-test\r"
+ expect -re "Opening ASCII mode data connection for file list."
+ expect -re "$tmppwd/ftp-test"
+ expect -re ".* Transfer complete."
+ expect "ftp> " {
+ pass $testname
+ }
+
+ set testname "ls missing"
+ send "ls $tmppwd/ftp-testmiss\r"
+ expect -re "Opening ASCII mode data connection for .*ls."
+ expect -re "$tmppwd/ftp-testmiss not found"
+ expect "ftp> " {
+ pass $testname
+ }
+
+
set testname "get"
catch "exec rm -f tmpdir/copy"
send "get $tmppwd/ftp-test $tmppwd/copy\r"