diff options
author | Daniel Stenberg <daniel@haxx.se> | 2011-05-18 21:48:14 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2011-05-18 22:56:46 +0200 |
commit | 873d70a6d8863346f4b70001b5a3d6d161086171 (patch) | |
tree | 4eb3c07dde31602670946396fd0a78d6ab95c4f5 /tests/data/test586 | |
parent | 6dfa16c3c47b0226b9835a7246bbc08d872e3eab (diff) |
tests: verify OPEN/CLOSESOCKETFUNCTION
Test 585 and 586 were added. Using a modified lib500.c
Diffstat (limited to 'tests/data/test586')
-rw-r--r-- | tests/data/test586 | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/tests/data/test586 b/tests/data/test586 new file mode 100644 index 000000000..c0857bdd8 --- /dev/null +++ b/tests/data/test586 @@ -0,0 +1,59 @@ +<testcase> +<info> +<keywords> +FTP +PASV +CURLOPT_PORT +</keywords> +</info> +# +# Server-side +<reply> +<data> +line 1 +line 2 +last line +</data> +<datacheck> +[OPEN] counter: 1 +[OPEN] counter: 2 +line 1 +line 2 +last line +[CLOSE] counter: 2 +[CLOSE] counter: 1 +</datacheck> +</reply> + +# +# Client-side +<client> +<server> +ftp +</server> +<tool> +lib585 +</tool> + <name> +FTP and open/close socket callbacks + </name> + <command> +ftp://%HOSTIP:%FTPPORT/586 +</command> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<protocol> +USER anonymous
+PASS ftp@example.com
+PWD
+EPSV
+TYPE I
+SIZE 586
+RETR 586
+QUIT
+</protocol> +</verify> +</testcase> |