From a167ab6a1e3b805a879b7cf5c5164e5dcd45ab0b Mon Sep 17 00:00:00 2001 From: Zenju Date: Tue, 24 Sep 2019 19:58:35 +0200 Subject: FTP: add test for FTPFILE_NOCWD: Avoid redundant CWDs Add libtest 661 Closes #4417 --- tests/data/Makefile.inc | 2 +- tests/data/test661 | 73 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 tests/data/test661 (limited to 'tests/data') diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index a3ce5a965..10072c584 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -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 \ diff --git a/tests/data/test661 b/tests/data/test661 new file mode 100644 index 000000000..067612be5 --- /dev/null +++ b/tests/data/test661 @@ -0,0 +1,73 @@ + + + +FTP + + + +# +# Server-side + + + + + +# Client-side + + +ftp + +# tool is what to use instead of 'curl' + +lib661 + + + +Avoid redundant CWDs + + +ftp://%HOSTIP:%FTPPORT/ + + + +# +# Verify data after the test has been "shot" + + +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 + + + -- cgit v1.2.1