]> granicus.if.org Git - curl/commitdiff
test: added POP3 test with dot-prefixed line
authorDaniel Stenberg <daniel@haxx.se>
Mon, 28 Nov 2011 22:34:16 +0000 (23:34 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 28 Nov 2011 22:34:16 +0000 (23:34 +0100)
Test 815 is disabled for now since libcurl currently doesn't unescape
such lines the way it should. See mail:

http://curl.haxx.se/mail/lib-2011-11/0324.html

tests/data/DISABLED
tests/data/Makefile.am
tests/data/test815 [new file with mode: 0644]

index be202993bb551bffcfd4efdc45514ed63bbda64d..085a3a38767f339a1d9ce9bc2386870ec6b8283e 100644 (file)
@@ -3,6 +3,7 @@
 # per line.
 # Lines starting with '#' letters are treated as comments.
 811
+815
 591
 592
 593
index 810c82e9bec5ac83d240ca1214fcadd71728b350..75b3781aaa68e29c1d9e07e87088fe6e88b374fb 100644 (file)
@@ -58,7 +58,7 @@ test700 test701 test702       test703 test704 test705 test706 test707 test708 \
 test709 test710 \
 test800 test801 test802        \
 test803 test804 test805 test806 test807 test808 test809 test810 test811        \
-test812 test813 test814 \
+test812 test813 test814 test815 \
 test1000 test1001 test1002 test1003 test1004 test1005  \
 test1006 test1007 test1008 test1009 test1010 test1011 test1012 test1013        \
 test1014 test1015 test1016 test1017 test1018 test1019 test1020 test1021        \
diff --git a/tests/data/test815 b/tests/data/test815
new file mode 100644 (file)
index 0000000..e8c8824
--- /dev/null
@@ -0,0 +1,56 @@
+<testcase>
+<info>
+<keywords>
+POP3
+RETR
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+<data>
+From: me@somewhere
+To: fake@nowhere
+
+..body with a single dot first
+
+--
+  yours sincerely
+</data>
+<datacheck>
+From: me@somewhere
+To: fake@nowhere
+
+.body with a single dot first
+
+--
+  yours sincerely
+</datacheck>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+pop3
+</server>
+ <name>
+POP3 RETR with dot-prefixed line
+ </name>
+ <command>
+pop3://%HOSTIP:%POP3PORT/815 -u user:secret
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+USER user\r
+PASS secret\r
+RETR 815\r
+QUIT\r
+</protocol>
+</verify>
+</testcase>