curl-curl/tests/data/test3003
Viktor Szakats 3d42510118
runtests: allow client/command to span multiple lines, and use it
Some curl command-lines are long, often repetitive, and difficult
to read or write:

Before this patch (1 test == 1 line):
- <=78 characters: 1099 tests
- 79-132 characters: 500 tests
- 133+ characters: 217 tests: patch meant to help with some of these.

After this patch:
- <=78 characters: 1288 lines
- 79-132 characters: 526 lines
- 133+ characters: 190 lines

After this patch it's possible to fold long lines into multiple ones.
Folding can reduce greppability, thus this is primarily useful for cases
when the options are repetitive, e.g. a list of form options, headers,
mail parameters and the like.

Closes #19500
2025-11-13 01:05:01 +01:00

64 lines
1001 B
Plaintext

<testcase>
<info>
<keywords>
SMTP
</keywords>
</info>
#
# Server-side
<reply>
</reply>
#
# Client-side
<client>
<server>
smtp
</server>
<name>
SMTP multiple and invalid (last) --mail-rcpt and --mail-rcpt-allowfails
</name>
<stdin crlf="yes">
From: different
To: another
body
</stdin>
<command>
smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER
--mail-rcpt-allowfails
--mail-rcpt recipient.one@example.com
--mail-rcpt recipient.two@example.com
--mail-rcpt recipient.three@example.com
--mail-rcpt recipient.four@example.com
--mail-rcpt invalid.five
--mail-from sender@example.com
-T -
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<protocol crlf="yes">
EHLO %TESTNUMBER
MAIL FROM:<sender@example.com>
RCPT TO:<recipient.one@example.com>
RCPT TO:<recipient.two@example.com>
RCPT TO:<recipient.three@example.com>
RCPT TO:<recipient.four@example.com>
RCPT TO:<invalid.five>
DATA
QUIT
</protocol>
<upload crlf="yes">
From: different
To: another
body
.
</upload>
</verify>
</testcase>