mirror of
https://github.com/curl/curl.git
synced 2026-08-26 14:23:32 +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
|
|
@ -24,14 +24,14 @@ sftp
|
|||
SFTP post-quote rename
|
||||
</name>
|
||||
<command>
|
||||
--key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "-rename %PWD/log/file608.txt %PWD/log/file608-renamed.txt" sftp://%HOSTIP:%SSHPORT%SSH_PWD/log/file608.txt --insecure
|
||||
--key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "-rename %PWD/log/file%TESTNUMBER.txt %PWD/log/file%TESTNUMBER-renamed.txt" sftp://%HOSTIP:%SSHPORT%SSH_PWD/log/file%TESTNUMBER.txt --insecure
|
||||
</command>
|
||||
# Verify that the file was renamed properly, then rename the file back to what
|
||||
# it was so the verify section works and the file can be cleaned up.
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/test610.pl gone %PWD/log/file608.txt move %PWD/log/file608-renamed.txt %PWD/log/file608.txt
|
||||
perl %SRCDIR/libtest/test610.pl gone %PWD/log/file%TESTNUMBER.txt move %PWD/log/file%TESTNUMBER-renamed.txt %PWD/log/file%TESTNUMBER.txt
|
||||
</postcheck>
|
||||
<file name="log/file608.txt">
|
||||
<file name="log/file%TESTNUMBER.txt">
|
||||
Test file for rename test
|
||||
</file>
|
||||
</client>
|
||||
|
|
@ -39,7 +39,7 @@ Test file for rename test
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<file name="log/file608.txt">
|
||||
<file name="log/file%TESTNUMBER.txt">
|
||||
Test file for rename test
|
||||
</file>
|
||||
<valgrind>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue