tests 1334 to 1363 revisited.

Add a postcheck section to verify unintended file creation.

Remove needless <file> checks in verify section. Renumbering where appropriate.
This commit is contained in:
Yang Tse
2012-06-05 20:19:27 +02:00
parent 62f374b19e
commit 2b56e4c1bb
23 changed files with 89 additions and 113 deletions

View File

@@ -41,6 +41,9 @@ CURL_TESTDIR=%PWD/log
<command option="no-output,no-include">
ftp://%HOSTIP:%FTPPORT/path/file1362 -O -i -D -
</command>
<postcheck>
perl %SRCDIR/libtest/notexists.pl %PWD/log/name1362
</postcheck>
</client>
# Verify data after the test has been "shot"
@@ -69,10 +72,7 @@ Content-Disposition: filename=name1362; charset=funny; option=strange
MOOOO
</file1>
<file2 name="log/heads1362">
</file2>
<file3 name="log/stdout1362">
<file2 name="log/stdout1362">
220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
@@ -87,13 +87,10 @@ MOOOO
213 214
150 Binary data connection for 1362 () (214 bytes).
226 File transfer complete
</file3>
<stripfile3>
</file2>
<stripfile2>
s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
</stripfile3>
<file4 name="log/name1362">
</file4>
</stripfile2>
</verify>
</testcase>