summaryrefslogtreecommitdiffstats
path: root/tests/auto/networkselftest
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-04-20 18:11:53 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-04-22 07:41:11 (GMT)
commit6e4ea4a55ccaf6e5f205c119062d6c2b527442ec (patch)
treefd1c899613d0e401e6a62ae42009dbeb3153c75e /tests/auto/networkselftest
parentd60a1d03453ab08ac12f85b4cf3beb0d4902b406 (diff)
downloadQt-6e4ea4a55ccaf6e5f205c119062d6c2b527442ec.zip
Qt-6e4ea4a55ccaf6e5f205c119062d6c2b527442ec.tar.gz
Qt-6e4ea4a55ccaf6e5f205c119062d6c2b527442ec.tar.bz2
[networkselftest] Enchance test to verify the layout of the FTP server.
Diffstat (limited to 'tests/auto/networkselftest')
-rw-r--r--tests/auto/networkselftest/tst_networkselftest.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/auto/networkselftest/tst_networkselftest.cpp b/tests/auto/networkselftest/tst_networkselftest.cpp
index 2cfe1cb..297f289 100644
--- a/tests/auto/networkselftest/tst_networkselftest.cpp
+++ b/tests/auto/networkselftest/tst_networkselftest.cpp
@@ -469,6 +469,33 @@ static QList<Chat> ftpChat(const QByteArray &userSuffix = QByteArray())
<< Chat::send("PASS user@hostname\r\n")
<< Chat::expect("230")
<< Chat::discardUntil("\r\n")
+
+ << Chat::send("CWD pub\r\n")
+ << Chat::expect("250")
+ << Chat::discardUntil("\r\n")
+ << Chat::send("CWD dir-not-readable\r\n")
+ << Chat::expect("550")
+ << Chat::discardUntil("\r\n")
+ << Chat::send("PWD\r\n")
+ << Chat::expect("257 \"/pub\"\r\n")
+ << Chat::send("SIZE file-not-readable.txt\r\n")
+ << Chat::expect("213 41\r\n")
+ << Chat::send("CWD qxmlquery\r\n")
+ << Chat::expect("250")
+ << Chat::discardUntil("\r\n")
+
+ << Chat::send("CWD /qtest\r\n")
+ << Chat::expect("250")
+ << Chat::discardUntil("\r\n")
+ << Chat::send("SIZE bigfile\r\n")
+ << Chat::expect("213 519240\r\n")
+ << Chat::send("SIZE rfc3252\r\n")
+ << Chat::expect("213 25962\r\n")
+ << Chat::send("SIZE rfc3252.txt\r\n")
+ << Chat::expect("213 25962\r\n")
+// << Chat::send("SIZE nonASCII/german_\344\366\374\304\326\334\337\r\n")
+// << Chat::expect("213 40\r\n")
+
<< Chat::send("QUIT\r\n")
<< Chat::expect("221")
<< Chat::discardUntil("\r\n")