mirror of
https://github.com/curl/curl.git
synced 2026-08-25 10:43:34 +03:00
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
This commit is contained in:
parent
453ad35d15
commit
e2b4df7b5e
1292 changed files with 4386 additions and 4389 deletions
|
|
@ -30,9 +30,9 @@ sftp
|
|||
TFTP RRQ followed by SFTP retrieval followed by FILE followed by SCP retrieval then again in reverse order
|
||||
</name>
|
||||
<command option="no-include">
|
||||
--key curl_client_key --pubkey curl_client_key.pub -u %USER: tftp://%HOSTIP:%TFTPPORT//2004 sftp://%HOSTIP:%SSHPORT%SSH_PWD/log/test2004.txt file://localhost%FILE_PWD/log/test2004.txt scp://%HOSTIP:%SSHPORT%SSH_PWD/log/test2004.txt file://localhost%FILE_PWD/log/test2004.txt sftp://%HOSTIP:%SSHPORT%SSH_PWD/log/test2004.txt tftp://%HOSTIP:%TFTPPORT//2004 --insecure
|
||||
--key curl_client_key --pubkey curl_client_key.pub -u %USER: tftp://%HOSTIP:%TFTPPORT//%TESTNUMBER sftp://%HOSTIP:%SSHPORT%SSH_PWD/log/test%TESTNUMBER.txt file://localhost%FILE_PWD/log/test%TESTNUMBER.txt scp://%HOSTIP:%SSHPORT%SSH_PWD/log/test%TESTNUMBER.txt file://localhost%FILE_PWD/log/test%TESTNUMBER.txt sftp://%HOSTIP:%SSHPORT%SSH_PWD/log/test%TESTNUMBER.txt tftp://%HOSTIP:%TFTPPORT//%TESTNUMBER --insecure
|
||||
</command>
|
||||
<file name="log/test2004.txt">
|
||||
<file name="log/test%TESTNUMBER.txt">
|
||||
This is test data
|
||||
for several protocols
|
||||
</file>
|
||||
|
|
@ -47,13 +47,13 @@ mode: octet
|
|||
tsize: 0
|
||||
blksize: 512
|
||||
timeout: 6
|
||||
filename: /2004
|
||||
filename: /%TESTNUMBER
|
||||
opcode: 1
|
||||
mode: octet
|
||||
tsize: 0
|
||||
blksize: 512
|
||||
timeout: 6
|
||||
filename: /2004
|
||||
filename: /%TESTNUMBER
|
||||
</protocol>
|
||||
<stdout>
|
||||
Test data file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue