mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08:00
tests 1348 to 1363: test definition polishing
Verify that the "Saved to filename 'blabla'" message is only displayed when the 'blabla' filename being used _actually_ has been specified by the server in the Content-Disposition header. Use relative path for unintended file creation postcheck.
This commit is contained in:
parent
00fddba672
commit
430791616b
@ -22,3 +22,6 @@
|
||||
1361
|
||||
1362
|
||||
#
|
||||
1338
|
||||
1339
|
||||
#
|
||||
|
@ -42,7 +42,7 @@ CURL_TESTDIR=%PWD/log
|
||||
http://%HOSTIP:%HTTPPORT/1336 -O -D log/heads1336
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %PWD/log/name1336
|
||||
perl %SRCDIR/libtest/notexists.pl log/name1336
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
|
@ -42,7 +42,7 @@ CURL_TESTDIR=%PWD/log
|
||||
http://%HOSTIP:%HTTPPORT/1337 -O -D -
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %PWD/log/name1337
|
||||
perl %SRCDIR/libtest/notexists.pl log/name1337
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
|
@ -71,7 +71,6 @@ Content-Type: text/html
|
||||
</file2>
|
||||
|
||||
<file3 name="log/stdout1338">
|
||||
curl: Saved to filename '%PWD/log/1338'
|
||||
</file3>
|
||||
|
||||
</verify>
|
||||
|
@ -68,7 +68,6 @@ Content-Length: 6
|
||||
Connection: close
|
||||
Content-Type: text/html
|
||||
|
||||
curl: Saved to filename '%PWD/log/1339'
|
||||
</file2>
|
||||
|
||||
</verify>
|
||||
|
@ -42,7 +42,7 @@ CURL_TESTDIR=%PWD/log
|
||||
http://%HOSTIP:%HTTPPORT/1344 -i -O -D log/heads1344
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %PWD/log/name1344
|
||||
perl %SRCDIR/libtest/notexists.pl log/name1344
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
|
@ -42,7 +42,7 @@ CURL_TESTDIR=%PWD/log
|
||||
http://%HOSTIP:%HTTPPORT/1345 -i -O -D -
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %PWD/log/name1345
|
||||
perl %SRCDIR/libtest/notexists.pl log/name1345
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
|
@ -42,7 +42,7 @@ CURL_TESTDIR=%PWD/log
|
||||
http://%HOSTIP:%HTTPPORT/1347 -i -O
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %PWD/log/name1347
|
||||
perl %SRCDIR/libtest/notexists.pl log/name1347
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
|
@ -77,7 +77,6 @@ s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
|
||||
</stripfile2>
|
||||
|
||||
<file3 name="log/stdout1351">
|
||||
curl: Saved to filename '%PWD/log/file1351'
|
||||
</file3>
|
||||
|
||||
</verify>
|
||||
|
@ -71,7 +71,6 @@ mooo
|
||||
150 Binary data connection for 1352 () (10 bytes).
|
||||
226 File transfer complete
|
||||
221 bye bye baby
|
||||
curl: Saved to filename '%PWD/log/file1352'
|
||||
</file2>
|
||||
<stripfile2>
|
||||
s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
|
||||
|
@ -42,7 +42,7 @@ CURL_TESTDIR=%PWD/log
|
||||
ftp://%HOSTIP:%FTPPORT/path/file1356 -O
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %PWD/log/name1356
|
||||
perl %SRCDIR/libtest/notexists.pl log/name1356
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
|
@ -42,7 +42,7 @@ CURL_TESTDIR=%PWD/log
|
||||
ftp://%HOSTIP:%FTPPORT/path/file1357 -O -D log/heads1357
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %PWD/log/name1357
|
||||
perl %SRCDIR/libtest/notexists.pl log/name1357
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
|
@ -42,7 +42,7 @@ CURL_TESTDIR=%PWD/log
|
||||
ftp://%HOSTIP:%FTPPORT/path/file1358 -O -D -
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %PWD/log/name1358
|
||||
perl %SRCDIR/libtest/notexists.pl log/name1358
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
|
@ -43,7 +43,7 @@ CURL_TESTDIR=%PWD/log
|
||||
ftp://%HOSTIP:%FTPPORT/path/file1359 -O -J -D log/heads1359
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %PWD/log/name1359
|
||||
perl %SRCDIR/libtest/notexists.pl log/name1359
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
@ -95,7 +95,6 @@ s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
|
||||
</stripfile2>
|
||||
|
||||
<file3 name="log/stdout1359">
|
||||
curl: Saved to filename '%PWD/log/file1359'
|
||||
</file3>
|
||||
|
||||
</verify>
|
||||
|
@ -43,7 +43,7 @@ CURL_TESTDIR=%PWD/log
|
||||
ftp://%HOSTIP:%FTPPORT/path/file1360 -O -J -D -
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %PWD/log/name1360
|
||||
perl %SRCDIR/libtest/notexists.pl log/name1360
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
@ -89,7 +89,6 @@ MOOOO
|
||||
150 Binary data connection for 1360 () (214 bytes).
|
||||
226 File transfer complete
|
||||
221 bye bye baby
|
||||
curl: Saved to filename '%PWD/log/file1360'
|
||||
</file2>
|
||||
<stripfile2>
|
||||
s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
|
||||
|
@ -42,7 +42,7 @@ CURL_TESTDIR=%PWD/log
|
||||
ftp://%HOSTIP:%FTPPORT/path/file1361 -O -i -D log/heads1361
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %PWD/log/name1361
|
||||
perl %SRCDIR/libtest/notexists.pl log/name1361
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
|
@ -42,7 +42,7 @@ CURL_TESTDIR=%PWD/log
|
||||
ftp://%HOSTIP:%FTPPORT/path/file1362 -O -i -D -
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %PWD/log/name1362
|
||||
perl %SRCDIR/libtest/notexists.pl log/name1362
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
|
@ -42,7 +42,7 @@ CURL_TESTDIR=%PWD/log
|
||||
ftp://%HOSTIP:%FTPPORT/path/file1363 -O -i
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %PWD/log/name1363
|
||||
perl %SRCDIR/libtest/notexists.pl log/name1363
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user