mirror of
https://github.com/curl/curl.git
synced 2026-08-26 09:23:31 +03:00
FTP: add test for FTPFILE_NOCWD: Avoid redundant CWDs
Add libtest 661 Closes #4417
This commit is contained in:
parent
500fb0e4cb
commit
a167ab6a1e
4 changed files with 228 additions and 2 deletions
|
|
@ -83,7 +83,7 @@ test617 test618 test619 test620 test621 test622 test623 test624 test625 \
|
|||
test626 test627 test628 test629 test630 test631 test632 test633 test634 \
|
||||
test635 test636 test637 test638 test639 test640 test641 test642 \
|
||||
test643 test644 test645 test646 test647 test648 test649 test650 test651 \
|
||||
test652 test653 test654 test655 test656 test658 test659 test660 \
|
||||
test652 test653 test654 test655 test656 test658 test659 test660 test661 \
|
||||
\
|
||||
test700 test701 test702 test703 test704 test705 test706 test707 test708 \
|
||||
test709 test710 test711 test712 test713 test714 test715 test716 test717 \
|
||||
|
|
|
|||
73
tests/data/test661
Normal file
73
tests/data/test661
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
FTP
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
</data>
|
||||
</reply>
|
||||
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
ftp
|
||||
</server>
|
||||
# tool is what to use instead of 'curl'
|
||||
<tool>
|
||||
lib661
|
||||
</tool>
|
||||
|
||||
<name>
|
||||
Avoid redundant CWDs
|
||||
</name>
|
||||
<command>
|
||||
ftp://%HOSTIP:%FTPPORT/
|
||||
</command>
|
||||
</client>
|
||||
|
||||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol>
|
||||
USER anonymous
|
||||
PASS ftp@example.com
|
||||
PWD
|
||||
CWD /folderA
|
||||
EPSV
|
||||
TYPE I
|
||||
RETR 661
|
||||
CWD /folderB
|
||||
EPSV
|
||||
RETR 661
|
||||
QUIT
|
||||
USER anonymous
|
||||
PASS ftp@example.com
|
||||
PWD
|
||||
EPSV
|
||||
TYPE I
|
||||
RETR /folderA/661
|
||||
CWD /folderB
|
||||
EPSV
|
||||
RETR 661
|
||||
EPSV
|
||||
RETR /folderA/661
|
||||
QUIT
|
||||
USER anonymous
|
||||
PASS ftp@example.com
|
||||
PWD
|
||||
SYST
|
||||
QUIT
|
||||
USER anonymous
|
||||
PASS ftp@example.com
|
||||
PWD
|
||||
SYST
|
||||
SYST
|
||||
QUIT
|
||||
</protocol>
|
||||
</verify>
|
||||
</testcase>
|
||||
Loading…
Add table
Add a link
Reference in a new issue