summaryrefslogtreecommitdiff
path: root/tests/data/test1406
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-03-12 17:38:26 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-03-19 15:57:21 +0100
commite2b4df7b5ed8ed86c900820fc4b2c30b9cb53f51 (patch)
tree3d15e2bf1fa76e0d951d64edeccca6b70636e0ed /tests/data/test1406
parent453ad35d15adf06bd1a141fb026214bc599b067f (diff)
downloadcurl-e2b4df7b5ed8ed86c900820fc4b2c30b9cb53f51.tar.gz
tests: use %TESTNUMBER instead of fixed number
This makes the tests easier to copy and relocate to other test numbers without having to update content. Closes #6738
Diffstat (limited to 'tests/data/test1406')
-rw-r--r--tests/data/test140610
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/data/test1406 b/tests/data/test1406
index 38f68d11e..498374779 100644
--- a/tests/data/test1406
+++ b/tests/data/test1406
@@ -28,14 +28,14 @@ smtp
<setenv>
SSL_CERT_FILE=
</setenv>
-<file name="log/test1406.eml">
+<file name="log/test%TESTNUMBER.eml">
From: different
To: another
body
</file>
<command>
-smtp://%HOSTIP:%SMTPPORT/1406 --mail-rcpt recipient.one@example.com --mail-rcpt recipient.two@example.com --mail-from sender@example.com -T log/test1406.eml --libcurl log/test1406.c
+smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient.one@example.com --mail-rcpt recipient.two@example.com --mail-from sender@example.com -T log/test%TESTNUMBER.eml --libcurl log/test%TESTNUMBER.c
</command>
</client>
@@ -43,7 +43,7 @@ smtp://%HOSTIP:%SMTPPORT/1406 --mail-rcpt recipient.one@example.com --mail-rcpt
# Verify data after the test has been "shot"
<verify>
<protocol>
-EHLO 1406
+EHLO %TESTNUMBER
MAIL FROM:<sender@example.com> SIZE=38
RCPT TO:<recipient.one@example.com>
RCPT TO:<recipient.two@example.com>
@@ -57,7 +57,7 @@ To: another
body
.
</upload>
-<file name="log/test1406.c" mode="text">
+<file name="log/test%TESTNUMBER.c" mode="text">
/********* Sample code generated by the curl command line tool **********
* All curl_easy_setopt() options are documented at:
* https://curl.se/libcurl/c/curl_easy_setopt.html
@@ -76,7 +76,7 @@ int main(int argc, char *argv[])
hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L);
- curl_easy_setopt(hnd, CURLOPT_URL, "smtp://%HOSTIP:%SMTPPORT/1406");
+ curl_easy_setopt(hnd, CURLOPT_URL, "smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER");
curl_easy_setopt(hnd, CURLOPT_UPLOAD, 1L);
curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L);
curl_easy_setopt(hnd, CURLOPT_FTP_SKIP_PASV_IP, 1L);