summaryrefslogtreecommitdiff
path: root/tests/data
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-12-28 12:12:09 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-12-28 12:17:32 +0000
commit29726951b084efaec7eb7a89d6ec9f2284840c4d (patch)
tree0f9e060955acf3c3fe0a95e548c0822add5ccf64 /tests/data
parent097fc121e684a4d0c252ab768cb1b5b186dc43f8 (diff)
downloadcurl-29726951b084efaec7eb7a89d6ec9f2284840c4d.tar.gz
tests: Added test for bug #1456
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/Makefile.inc2
-rw-r--r--tests/data/test152059
2 files changed, 61 insertions, 0 deletions
diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc
index 74e1cb612..618c68223 100644
--- a/tests/data/Makefile.inc
+++ b/tests/data/Makefile.inc
@@ -149,6 +149,8 @@ test1500 test1501 test1502 test1503 test1504 test1505 test1506 test1507 \
test1508 test1509 test1510 test1511 test1512 test1513 test1514 test1515 \
test1516 \
\
+test1520 \
+\
test1525 test1526 test1527 test1528 \
\
test1800 test1801 \
diff --git a/tests/data/test1520 b/tests/data/test1520
new file mode 100644
index 000000000..c8b62fd07
--- /dev/null
+++ b/tests/data/test1520
@@ -0,0 +1,59 @@
+<testcase>
+# Based off test 901 after bug report #1456
+<info>
+<keywords>
+SMTP
+</keywords>
+</info>
+
+#
+# Client-side
+<client>
+<server>
+smtp
+</server>
+<tool>
+lib1520
+</tool>
+
+ <name>
+SMTP with CRLF-dot-CRLF in data
+ </name>
+<stdin>
+From: different
+To: another
+
+
+.
+.
+
+.
+
+body
+</stdin>
+ <command>
+smtp://%HOSTIP:%SMTPPORT/1520
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+EHLO 1520
+MAIL FROM:<sender@example.com>
+RCPT TO:<recipient@example.com>
+DATA
+From: different
+To: another
+
+
+..
+..
+
+..
+
+body
+</protocol>
+</verify>
+</testcase>