tests: postcheck is now in verify
Also introduce 'notexists' for verifying that directory entries do not exist after a test. Now an explicit supported feature instead of using "funny" perl in postcheck. Closes #15046
This commit is contained in:
parent
7060b9b082
commit
56183c1d6f
@ -510,10 +510,6 @@ output is displayed by the command or if the return code is non-zero, the test
|
||||
is skipped and the (single-line) output is displayed as reason for not running
|
||||
the test.
|
||||
|
||||
### `<postcheck>`
|
||||
A command line that if set gets run by the test script after the test. If the
|
||||
command exists with a non-zero status code, the test is considered failed.
|
||||
|
||||
### `<tool>`
|
||||
Name of tool to invoke instead of "curl". This tool must be built and exist
|
||||
either in the `libtest/` directory (if the tool name starts with `lib`) or in
|
||||
@ -622,6 +618,14 @@ changing protocol data such as port numbers or user-agent strings.
|
||||
One perl op per line that operates on the protocol dump. This is pretty
|
||||
advanced. Example: `s/^EPRT .*/EPRT stripped/`.
|
||||
|
||||
### `<postcheck>`
|
||||
A command line that if set gets run by the test script after the test. If the
|
||||
command exists with a non-zero status code, the test is considered failed.
|
||||
|
||||
### `<notexists>`
|
||||
A list of directory entries that are checked for after the test has completed
|
||||
and that must not exist. A listed entry existing causes the test to fail.
|
||||
|
||||
### `<protocol [nonewline="yes"][crlf="yes"]>`
|
||||
|
||||
the protocol dump curl should transmit, if `nonewline` is set, we cut off the
|
||||
|
||||
@ -22,14 +22,14 @@ Compare curl --version with curl-config --protocols
|
||||
<command>
|
||||
--version
|
||||
</command>
|
||||
<postcheck>
|
||||
%SRCDIR/libtest/test%TESTNUMBER.pl ../curl-config %LOGDIR/stdout%TESTNUMBER protocols
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<postcheck>
|
||||
%SRCDIR/libtest/test%TESTNUMBER.pl ../curl-config %LOGDIR/stdout%TESTNUMBER protocols
|
||||
</postcheck>
|
||||
<errorcode>
|
||||
0
|
||||
</errorcode>
|
||||
|
||||
@ -22,14 +22,14 @@ Compare curl --version with curl-config --features
|
||||
<command>
|
||||
--version
|
||||
</command>
|
||||
<postcheck>
|
||||
%SRCDIR/libtest/test1013.pl ../curl-config %LOGDIR/stdout%TESTNUMBER features
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<postcheck>
|
||||
%SRCDIR/libtest/test1013.pl ../curl-config %LOGDIR/stdout%TESTNUMBER features
|
||||
</postcheck>
|
||||
<errorcode>
|
||||
0
|
||||
</errorcode>
|
||||
|
||||
@ -22,14 +22,14 @@ Compare curl --version with curl-config --version
|
||||
<command>
|
||||
--version
|
||||
</command>
|
||||
<postcheck>
|
||||
%SRCDIR/libtest/test%TESTNUMBER.pl ../curl-config %LOGDIR/stdout%TESTNUMBER version
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<postcheck>
|
||||
%SRCDIR/libtest/test%TESTNUMBER.pl ../curl-config %LOGDIR/stdout%TESTNUMBER version
|
||||
</postcheck>
|
||||
<errorcode>
|
||||
0
|
||||
</errorcode>
|
||||
|
||||
@ -22,14 +22,14 @@ Compare curl --version with curl-config --vernum
|
||||
<command>
|
||||
--version
|
||||
</command>
|
||||
<postcheck>
|
||||
%SRCDIR/libtest/test1022.pl ../curl-config %LOGDIR/stdout%TESTNUMBER vernum
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<postcheck>
|
||||
%SRCDIR/libtest/test1022.pl ../curl-config %LOGDIR/stdout%TESTNUMBER vernum
|
||||
</postcheck>
|
||||
<errorcode>
|
||||
0
|
||||
</errorcode>
|
||||
|
||||
@ -25,16 +25,16 @@ curl --manual
|
||||
<command>
|
||||
--manual
|
||||
</command>
|
||||
# Search for these two sentinel lines in the manual output; if they are found,
|
||||
# then chances are good the entire manual is there.
|
||||
<postcheck>
|
||||
perl -e 'open(IN,$ARGV[0]); my $lines=grep(/(curl\s*-\s*transfer\sa\s*URL)|(AUTHORS)/, <IN>); exit ($lines != 2); # Let this file pass an XML syntax check: </IN>' %LOGDIR/stdout%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
# Search for these two sentinel lines in the manual output; if they are found,
|
||||
# then chances are good the entire manual is there.
|
||||
<postcheck>
|
||||
perl -e 'open(IN,$ARGV[0]); my $lines=grep(/(curl\s*-\s*transfer\sa\s*URL)|(AUTHORS)/, <IN>); exit ($lines != 2); # Let this file pass an XML syntax check: </IN>' %LOGDIR/stdout%TESTNUMBER
|
||||
</postcheck>
|
||||
<errorcode>
|
||||
0
|
||||
</errorcode>
|
||||
|
||||
@ -22,11 +22,6 @@ curl --help
|
||||
<command>
|
||||
--help
|
||||
</command>
|
||||
# Search for these two sentinel lines in the help output; if they are found,
|
||||
# then chances are good the entire help is there.
|
||||
<postcheck>
|
||||
perl -e 'open(IN,$ARGV[0]); my $lines=grep(/(Usage: curl )|(--version\s*Show version)/, <IN>); exit ($lines != 2); # Let this file pass an XML syntax check: </IN>' %LOGDIR/stdout%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
@ -35,5 +30,10 @@ perl -e 'open(IN,$ARGV[0]); my $lines=grep(/(Usage: curl )|(--version\s*Show ver
|
||||
<errorcode>
|
||||
0
|
||||
</errorcode>
|
||||
# Search for these two sentinel lines in the help output; if they are found,
|
||||
# then chances are good the entire help is there.
|
||||
<postcheck>
|
||||
perl -e 'open(IN,$ARGV[0]); my $lines=grep(/(Usage: curl )|(--version\s*Show version)/, <IN>); exit ($lines != 2); # Let this file pass an XML syntax check: </IN>' %LOGDIR/stdout%TESTNUMBER
|
||||
</postcheck>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -21,16 +21,15 @@ Verify that runtests.pl accepts an exclude file with the -E option
|
||||
<precheck>
|
||||
mkdir %LOGDIR/data ; mkdir %LOGDIR/log; cp %SRCDIR/data/test1 %LOGDIR/data; echo 'test:1:Test should not run for unit test %TESTNUMBER' > %LOGDIR/test%TESTNUMBER-exclude-file
|
||||
</precheck>
|
||||
<postcheck>
|
||||
grep -q "Test should not run for unit test %TESTNUMBER" %LOGDIR/stdout%TESTNUMBER
|
||||
</postcheck>
|
||||
|
||||
</client>
|
||||
|
||||
<verify>
|
||||
<errorcode>
|
||||
1
|
||||
</errorcode>
|
||||
<postcheck>
|
||||
grep -q "Test should not run for unit test %TESTNUMBER" %LOGDIR/stdout%TESTNUMBER
|
||||
</postcheck>
|
||||
</verify>
|
||||
|
||||
</testcase>
|
||||
|
||||
@ -41,9 +41,6 @@ CURL_TESTDIR=%LOGDIR
|
||||
<command option="no-output,no-include">
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -O -D %LOGDIR/heads%TESTNUMBER
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/name%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
@ -74,6 +71,8 @@ Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
|
||||
|
||||
<file3 name="%LOGDIR/stdout%TESTNUMBER">
|
||||
</file3>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/name%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -41,9 +41,6 @@ CURL_TESTDIR=%LOGDIR
|
||||
<command option="no-output,no-include">
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -O -D -
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/name%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
@ -71,6 +68,8 @@ Content-Type: text/html
|
||||
Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
|
||||
|
||||
</file2>
|
||||
|
||||
<notexists>>
|
||||
%LOGDIR/name%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -41,9 +41,6 @@ CURL_TESTDIR=%LOGDIR
|
||||
<command option="no-output,no-include">
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -i -O -D %LOGDIR/heads%TESTNUMBER
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/name%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
@ -82,6 +79,8 @@ Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
|
||||
|
||||
<file3 name="%LOGDIR/stdout%TESTNUMBER">
|
||||
</file3>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/name%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -41,9 +41,6 @@ CURL_TESTDIR=%LOGDIR
|
||||
<command option="no-output,no-include">
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -i -O -D -
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/name%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
@ -79,6 +76,8 @@ Content-Type: text/html
|
||||
Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
|
||||
|
||||
</file2>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/name%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -41,9 +41,6 @@ CURL_TESTDIR=%LOGDIR
|
||||
<command option="no-output,no-include">
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -i -O
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/name%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
@ -71,6 +68,9 @@ Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
|
||||
|
||||
<file2 name="%LOGDIR/stdout%TESTNUMBER">
|
||||
</file2>
|
||||
<notexists>
|
||||
%LOGDIR/name%TESTNUMBER
|
||||
</notexists>
|
||||
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -41,9 +41,6 @@ CURL_TESTDIR=%LOGDIR
|
||||
<command option="no-output,no-include">
|
||||
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -O
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/name%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
@ -77,6 +74,8 @@ MOOOO
|
||||
|
||||
<file2 name="%LOGDIR/stdout%TESTNUMBER">
|
||||
</file2>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/name%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -41,9 +41,6 @@ CURL_TESTDIR=%LOGDIR
|
||||
<command option="no-output,no-include">
|
||||
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -O -D %LOGDIR/heads%TESTNUMBER
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/name%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
@ -97,6 +94,8 @@ s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
|
||||
|
||||
<file3 name="%LOGDIR/stdout%TESTNUMBER">
|
||||
</file3>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/name%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -41,9 +41,6 @@ CURL_TESTDIR=%LOGDIR
|
||||
<command option="no-output,no-include">
|
||||
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -O -D -
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/name%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
@ -95,5 +92,8 @@ MOOOO
|
||||
s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
|
||||
</stripfile2>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/name%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -42,9 +42,6 @@ CURL_TESTDIR=%LOGDIR
|
||||
<command option="no-output,no-include">
|
||||
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -O -J -D %LOGDIR/heads%TESTNUMBER
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/name%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
@ -99,5 +96,8 @@ s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
|
||||
<file3 name="%LOGDIR/stdout%TESTNUMBER">
|
||||
</file3>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/name%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -42,9 +42,6 @@ CURL_TESTDIR=%LOGDIR
|
||||
<command option="no-output,no-include">
|
||||
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -O -J -D -
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/name%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
@ -96,5 +93,8 @@ MOOOO
|
||||
s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
|
||||
</stripfile2>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/name%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -41,9 +41,6 @@ CURL_TESTDIR=%LOGDIR
|
||||
<command option="no-output,no-include">
|
||||
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -O -i -D %LOGDIR/heads%TESTNUMBER
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/name%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
@ -98,5 +95,8 @@ s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
|
||||
<file3 name="%LOGDIR/stdout%TESTNUMBER">
|
||||
</file3>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/name%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -41,9 +41,6 @@ CURL_TESTDIR=%LOGDIR
|
||||
<command option="no-output,no-include">
|
||||
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -O -i -D -
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/name%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
@ -95,5 +92,8 @@ MOOOO
|
||||
s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
|
||||
</stripfile2>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/name%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -41,9 +41,6 @@ CURL_TESTDIR=%LOGDIR
|
||||
<command option="no-output,no-include">
|
||||
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -O -i
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/name%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
@ -78,5 +75,8 @@ MOOOO
|
||||
<file2 name="%LOGDIR/stdout%TESTNUMBER">
|
||||
</file2>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/name%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -32,9 +32,6 @@ HTTP GET -o fname without Content-Disposition, -D file
|
||||
<command option="no-output,no-include">
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -o %LOGDIR/outfile%TESTNUMBER -D %LOGDIR/heads%TESTNUMBER
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
@ -65,5 +62,8 @@ Content-Type: text/html
|
||||
<file3 name="%LOGDIR/stdout%TESTNUMBER">
|
||||
</file3>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -32,9 +32,6 @@ HTTP GET -o fname without Content-Disposition, -D stdout
|
||||
<command option="no-output,no-include">
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -o %LOGDIR/outfile%TESTNUMBER -D -
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
@ -62,5 +59,8 @@ Content-Type: text/html
|
||||
|
||||
</file2>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -33,9 +33,6 @@ HTTP GET -o fname and Content-Disposition, -D file
|
||||
<command option="no-output,no-include">
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -o %LOGDIR/outfile%TESTNUMBER -D %LOGDIR/heads%TESTNUMBER
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/%TESTNUMBER %LOGDIR/name%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
@ -67,5 +64,9 @@ Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
|
||||
<file3 name="%LOGDIR/stdout%TESTNUMBER">
|
||||
</file3>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/%TESTNUMBER
|
||||
%LOGDIR/name%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -33,9 +33,6 @@ HTTP GET -o fname and Content-Disposition, -D stdout
|
||||
<command option="no-output,no-include">
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -o %LOGDIR/outfile%TESTNUMBER -D -
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/%TESTNUMBER %LOGDIR/name%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
@ -64,5 +61,9 @@ Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
|
||||
|
||||
</file2>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/%TESTNUMBER
|
||||
%LOGDIR/name%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -33,9 +33,6 @@ HTTP GET -o fname -J without Content-Disposition, -D file
|
||||
<command option="no-output,no-include">
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -J -o %LOGDIR/outfile%TESTNUMBER -D %LOGDIR/heads%TESTNUMBER
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
@ -66,5 +63,8 @@ Content-Type: text/html
|
||||
<file3 name="%LOGDIR/stdout%TESTNUMBER">
|
||||
</file3>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -33,9 +33,6 @@ HTTP GET -o fname -J without Content-Disposition, -D stdout
|
||||
<command option="no-output,no-include">
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -J -o %LOGDIR/outfile%TESTNUMBER -D -
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
@ -63,5 +60,8 @@ Content-Type: text/html
|
||||
|
||||
</file2>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -34,9 +34,6 @@ HTTP GET -o fname -J and Content-Disposition, -D file
|
||||
<command option="no-output,no-include">
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -J -o %LOGDIR/outfile%TESTNUMBER -D %LOGDIR/heads%TESTNUMBER
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/%TESTNUMBER %LOGDIR/name%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
@ -68,5 +65,9 @@ Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
|
||||
<file3 name="%LOGDIR/stdout%TESTNUMBER">
|
||||
</file3>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/%TESTNUMBER
|
||||
%LOGDIR/name%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -34,9 +34,6 @@ HTTP GET -o fname -J and Content-Disposition, -D stdout
|
||||
<command option="no-output,no-include">
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -J -o %LOGDIR/outfile%TESTNUMBER -D -
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/%TESTNUMBER %LOGDIR/name%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
@ -65,5 +62,9 @@ Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
|
||||
|
||||
</file2>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/%TESTNUMBER
|
||||
%LOGDIR/name%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -32,9 +32,6 @@ HTTP GET -o fname -i without Content-Disposition, -D file
|
||||
<command option="no-output,no-include">
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -i -o %LOGDIR/outfile%TESTNUMBER -D %LOGDIR/heads%TESTNUMBER
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
@ -72,5 +69,8 @@ Content-Type: text/html
|
||||
<file3 name="%LOGDIR/stdout%TESTNUMBER">
|
||||
</file3>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -32,9 +32,6 @@ HTTP GET -o fname -i without Content-Disposition, -D stdout
|
||||
<command option="no-output,no-include">
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -i -o %LOGDIR/outfile%TESTNUMBER -D -
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
@ -69,5 +66,8 @@ Content-Type: text/html
|
||||
|
||||
</file2>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -33,9 +33,6 @@ HTTP GET -o fname -i and Content-Disposition, -D file
|
||||
<command option="no-output,no-include">
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -i -o %LOGDIR/outfile%TESTNUMBER -D %LOGDIR/heads%TESTNUMBER
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/%TESTNUMBER %LOGDIR/name%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
@ -75,5 +72,9 @@ Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
|
||||
<file3 name="%LOGDIR/stdout%TESTNUMBER">
|
||||
</file3>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/%TESTNUMBER
|
||||
%LOGDIR/name%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -33,9 +33,6 @@ HTTP GET -o fname -i and Content-Disposition, -D stdout
|
||||
<command option="no-output,no-include">
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -i -o %LOGDIR/outfile%TESTNUMBER -D -
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/%TESTNUMBER %LOGDIR/name%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
@ -72,5 +69,9 @@ Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
|
||||
|
||||
</file2>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/%TESTNUMBER
|
||||
%LOGDIR/name%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -32,9 +32,6 @@ HTTP GET -o fname -i without Content-Disposition, without -D
|
||||
<command option="no-output,no-include">
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -i -o %LOGDIR/outfile%TESTNUMBER
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
@ -62,5 +59,8 @@ Content-Type: text/html
|
||||
<file2 name="%LOGDIR/stdout%TESTNUMBER">
|
||||
</file2>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -33,9 +33,6 @@ HTTP GET -o fname -i and Content-Disposition, without -D
|
||||
<command option="no-output,no-include">
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -i -o %LOGDIR/outfile%TESTNUMBER
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/%TESTNUMBER %LOGDIR/name%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
@ -63,6 +60,10 @@ Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
|
||||
|
||||
<file2 name="%LOGDIR/stdout%TESTNUMBER">
|
||||
</file2>
|
||||
<notexists>
|
||||
%LOGDIR/%TESTNUMBER
|
||||
%LOGDIR/name%TESTNUMBER
|
||||
</notexists>
|
||||
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -25,9 +25,6 @@ FTP DL, file without Content-Disposition inside, using -o fname
|
||||
<command option="no-output,no-include">
|
||||
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -o %LOGDIR/download%TESTNUMBER
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/file%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
@ -54,6 +51,9 @@ mooo
|
||||
|
||||
<file2 name="%LOGDIR/stdout%TESTNUMBER">
|
||||
</file2>
|
||||
<notexists>
|
||||
%LOGDIR/file%TESTNUMBER
|
||||
</notexists>
|
||||
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -25,9 +25,6 @@ FTP DL, file without C-D inside, using -o fname -D file
|
||||
<command option="no-output,no-include">
|
||||
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -o %LOGDIR/download%TESTNUMBER -D %LOGDIR/heads%TESTNUMBER
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/file%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
@ -75,5 +72,8 @@ s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
|
||||
<file3 name="%LOGDIR/stdout%TESTNUMBER">
|
||||
</file3>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/file%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -25,9 +25,6 @@ FTP DL, file without C-D inside, using -o fname -D stdout
|
||||
<command option="no-output,no-include">
|
||||
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -o %LOGDIR/download%TESTNUMBER -D -
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/file%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
@ -72,5 +69,8 @@ mooo
|
||||
s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
|
||||
</stripfile2>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/file%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -26,9 +26,6 @@ FTP DL, file without C-D inside, using -o fname -J -D file
|
||||
<command option="no-output,no-include">
|
||||
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -o %LOGDIR/download%TESTNUMBER -J -D %LOGDIR/heads%TESTNUMBER
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/file%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
@ -76,5 +73,8 @@ s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
|
||||
<file3 name="%LOGDIR/stdout%TESTNUMBER">
|
||||
</file3>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/file%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -26,9 +26,6 @@ FTP DL, file without C-D inside, using -o fname -J -D stdout
|
||||
<command option="no-output,no-include">
|
||||
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -o %LOGDIR/download%TESTNUMBER -J -D -
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/file%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
@ -73,5 +70,8 @@ mooo
|
||||
s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
|
||||
</stripfile2>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/file%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -25,9 +25,6 @@ FTP DL, file without C-D inside, using -o fname -i -D file
|
||||
<command option="no-output,no-include">
|
||||
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -o %LOGDIR/download%TESTNUMBER -i -D %LOGDIR/heads%TESTNUMBER
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/file%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
@ -75,5 +72,8 @@ s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
|
||||
<file3 name="%LOGDIR/stdout%TESTNUMBER">
|
||||
</file3>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/file%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -25,9 +25,6 @@ FTP DL, file without C-D inside, using -o fname -i -D stdout
|
||||
<command option="no-output,no-include">
|
||||
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -o %LOGDIR/download%TESTNUMBER -i -D -
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/file%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
@ -72,5 +69,8 @@ mooo
|
||||
s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
|
||||
</stripfile2>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/file%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -25,9 +25,6 @@ FTP DL, file without C-D inside, using -o fname -i, without -D
|
||||
<command option="no-output,no-include">
|
||||
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -o %LOGDIR/download%TESTNUMBER -i
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/file%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
@ -55,5 +52,8 @@ mooo
|
||||
<file2 name="%LOGDIR/stdout%TESTNUMBER">
|
||||
</file2>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/file%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -33,9 +33,6 @@ FTP DL, file with Content-Disposition inside, using -o fname
|
||||
<command option="no-output,no-include">
|
||||
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -o %LOGDIR/download%TESTNUMBER
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/file%TESTNUMBER %LOGDIR/name%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
@ -70,5 +67,9 @@ MOOOO
|
||||
<file2 name="%LOGDIR/stdout%TESTNUMBER">
|
||||
</file2>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/file%TESTNUMBER
|
||||
%LOGDIR/name%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -33,9 +33,6 @@ FTP DL, file with C-D inside, using -o fname -D file
|
||||
<command option="no-output,no-include">
|
||||
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -o %LOGDIR/download%TESTNUMBER -D %LOGDIR/heads%TESTNUMBER
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/file%TESTNUMBER %LOGDIR/name%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
@ -90,5 +87,9 @@ s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
|
||||
<file3 name="%LOGDIR/stdout%TESTNUMBER">
|
||||
</file3>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/file%TESTNUMBER
|
||||
%LOGDIR/name%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -33,9 +33,6 @@ FTP DL, file with C-D inside, using -o fname -D stdout
|
||||
<command option="no-output,no-include">
|
||||
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -o %LOGDIR/download%TESTNUMBER -D -
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/file%TESTNUMBER %LOGDIR/name%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
@ -86,6 +83,10 @@ MOOOO
|
||||
<stripfile2>
|
||||
s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
|
||||
</stripfile2>
|
||||
<notexists>
|
||||
%LOGDIR/file%TESTNUMBER
|
||||
%LOGDIR/name%TESTNUMBER
|
||||
</notexists>
|
||||
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -34,9 +34,6 @@ FTP DL, file with C-D inside, using -o fname -J -D file
|
||||
<command option="no-output,no-include">
|
||||
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -o %LOGDIR/download%TESTNUMBER -J -D %LOGDIR/heads%TESTNUMBER
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/file%TESTNUMBER %LOGDIR/name%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
@ -90,6 +87,10 @@ s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
|
||||
|
||||
<file3 name="%LOGDIR/stdout%TESTNUMBER">
|
||||
</file3>
|
||||
<notexists>
|
||||
%LOGDIR/file%TESTNUMBER
|
||||
%LOGDIR/name%TESTNUMBER
|
||||
</notexists>
|
||||
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -34,9 +34,6 @@ FTP DL, file with C-D inside, using -o fname -J -D stdout
|
||||
<command option="no-output,no-include">
|
||||
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -o %LOGDIR/download%TESTNUMBER -J -D -
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/file%TESTNUMBER %LOGDIR/name%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
@ -88,5 +85,9 @@ MOOOO
|
||||
s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
|
||||
</stripfile2>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/file%TESTNUMBER
|
||||
%LOGDIR/name%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -33,9 +33,6 @@ FTP DL, file with C-D inside, using -o fname -i -D file
|
||||
<command option="no-output,no-include">
|
||||
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -o %LOGDIR/download%TESTNUMBER -i -D %LOGDIR/heads%TESTNUMBER
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/file%TESTNUMBER %LOGDIR/name%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
@ -90,5 +87,9 @@ s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
|
||||
<file3 name="%LOGDIR/stdout%TESTNUMBER">
|
||||
</file3>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/file%TESTNUMBER
|
||||
%LOGDIR/name%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -33,9 +33,6 @@ FTP DL, file with C-D inside, using -o fname -i -D stdout
|
||||
<command option="no-output,no-include">
|
||||
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -o %LOGDIR/download%TESTNUMBER -i -D -
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/file%TESTNUMBER %LOGDIR/name%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
@ -87,5 +84,9 @@ MOOOO
|
||||
s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
|
||||
</stripfile2>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/file%TESTNUMBER
|
||||
%LOGDIR/name%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -33,9 +33,6 @@ FTP DL, file with C-D inside, using -o fname -i, without -D
|
||||
<command option="no-output,no-include">
|
||||
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -o %LOGDIR/download%TESTNUMBER -i
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/file%TESTNUMBER %LOGDIR/name%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
@ -70,5 +67,9 @@ MOOOO
|
||||
<file2 name="%LOGDIR/stdout%TESTNUMBER">
|
||||
</file2>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/file%TESTNUMBER
|
||||
%LOGDIR/name%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -32,9 +32,6 @@ HTTP GET -o fname without Content-Disposition (empty file)
|
||||
<command option="no-output,no-include">
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -o %LOGDIR/outfile%TESTNUMBER file://%PWD/%LOGDIR/outfile%TESTNUMBER
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/notexists.pl %LOGDIR/%TESTNUMBER
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
@ -51,5 +48,8 @@ Accept: */*
|
||||
<file1 name="%LOGDIR/outfile%TESTNUMBER">
|
||||
</file1>
|
||||
|
||||
<notexists>
|
||||
%LOGDIR/%TESTNUMBER
|
||||
</notexists>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -44,9 +44,6 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER -O --remote-time
|
||||
</command>
|
||||
# Verify the mtime of the file. The mtime is specifically chosen to be an even
|
||||
# number so that it can be represented exactly on a FAT filesystem.
|
||||
<postcheck>
|
||||
perl -e 'exit((stat("%LOGDIR/%TESTNUMBER"))[9] != 960898200)'
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
@ -62,5 +59,8 @@ Accept: */*
|
||||
<file name="%LOGDIR/%TESTNUMBER">
|
||||
12345
|
||||
</file>
|
||||
<postcheck>
|
||||
perl -e 'exit((stat("%LOGDIR/%TESTNUMBER"))[9] != 960898200)'
|
||||
</postcheck>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -28,11 +28,6 @@ FTP with --remote-time
|
||||
<command>
|
||||
ftp://%HOSTIP:%FTPPORT/%TESTNUMBER --remote-time
|
||||
</command>
|
||||
# Verify the mtime of the file. The mtime is specifically chosen to be an even
|
||||
# number so that it can be represented exactly on a FAT filesystem.
|
||||
<postcheck>
|
||||
perl -e 'exit((stat("%LOGDIR/curl%TESTNUMBER.out"))[9] != 1234567890)'
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
@ -51,5 +46,10 @@ SIZE %TESTNUMBER
|
||||
RETR %TESTNUMBER
|
||||
QUIT
|
||||
</protocol>
|
||||
# Verify the mtime of the file. The mtime is specifically chosen to be an even
|
||||
# number so that it can be represented exactly on a FAT filesystem.
|
||||
<postcheck>
|
||||
perl -e 'exit((stat("%LOGDIR/curl%TESTNUMBER.out"))[9] != 1234567890)'
|
||||
</postcheck>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -23,13 +23,13 @@ file:// with --remote-time
|
||||
<command>
|
||||
file://localhost%FILE_PWD/%LOGDIR/test%TESTNUMBER.dir/plainfile.txt --remote-time
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/test613.pl postprocess %PWD/%LOGDIR/test%TESTNUMBER.dir && \
|
||||
perl -e 'exit((stat("%LOGDIR/curl%TESTNUMBER.out"))[9] != 946728000)'
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/test613.pl postprocess %PWD/%LOGDIR/test%TESTNUMBER.dir && \
|
||||
perl -e 'exit((stat("%LOGDIR/curl%TESTNUMBER.out"))[9] != 946728000)'
|
||||
</postcheck>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -26,14 +26,14 @@ SFTP with --remote-time
|
||||
<command>
|
||||
--key %LOGDIR/server/curl_client_key --pubkey %LOGDIR/server/curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%SSH_PWD/%LOGDIR/test%TESTNUMBER.dir/rofile.txt --insecure --remote-time
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/test613.pl postprocess %PWD/%LOGDIR/test%TESTNUMBER.dir && \
|
||||
perl -e 'exit((stat("%LOGDIR/curl%TESTNUMBER.out"))[9] != 978264000)'
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/test613.pl postprocess %PWD/%LOGDIR/test%TESTNUMBER.dir && \
|
||||
perl -e 'exit((stat("%LOGDIR/curl%TESTNUMBER.out"))[9] != 978264000)'
|
||||
</postcheck>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -41,9 +41,6 @@ to stay the same
|
||||
<precheck>
|
||||
perl -e 'for my $i ((1..100)) { my $filename = "%LOGDIR/exist%TESTNUMBER.$i"; open(FH, ">", $filename) or die $!; print FH "to stay the same" ; close(FH) }'
|
||||
</precheck>
|
||||
<postcheck>
|
||||
perl -e 'for my $i ((1..100)) { my $filename = "%LOGDIR/exist%TESTNUMBER.$i"; open(FH, "<", $filename) or die $!; (<FH> eq "to stay the same" and <FH> eq "") or die "incorrect $filename" ; close(FH) }'
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
@ -55,5 +52,8 @@ perl -e 'for my $i ((1..100)) { my $filename = "%LOGDIR/exist%TESTNUMBER.$i"; op
|
||||
<file name="%LOGDIR/exist%TESTNUMBER">
|
||||
to stay the same
|
||||
</file>
|
||||
<postcheck>
|
||||
perl -e 'for my $i ((1..100)) { my $filename = "%LOGDIR/exist%TESTNUMBER.$i"; open(FH, "<", $filename) or die $!; (<FH> eq "to stay the same" and <FH> eq "") or die "incorrect $filename" ; close(FH) }'
|
||||
</postcheck>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -28,9 +28,6 @@ SFTP post-quote rename
|
||||
</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/%LOGDIR/file%TESTNUMBER.txt move %PWD/%LOGDIR/file%TESTNUMBER-renamed.txt %PWD/%LOGDIR/file%TESTNUMBER.txt
|
||||
</postcheck>
|
||||
<file name="%LOGDIR/file%TESTNUMBER.txt">
|
||||
Test file for rename test
|
||||
</file>
|
||||
@ -42,5 +39,8 @@ Test file for rename test
|
||||
<file name="%LOGDIR/file%TESTNUMBER.txt">
|
||||
Test file for rename test
|
||||
</file>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/test610.pl gone %PWD/%LOGDIR/file%TESTNUMBER.txt move %PWD/%LOGDIR/file%TESTNUMBER-renamed.txt %PWD/%LOGDIR/file%TESTNUMBER.txt
|
||||
</postcheck>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -29,9 +29,6 @@ SFTP post-quote rmdir
|
||||
<command>
|
||||
--key %LOGDIR/server/curl_client_key --pubkey %LOGDIR/server/curl_client_key.pub -u %USER: -Q "-rmdir %PWD/%LOGDIR/test%TESTNUMBER.dir" sftp://%HOSTIP:%SSHPORT%SSH_PWD/%LOGDIR/file%TESTNUMBER.txt --insecure
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/test%TESTNUMBER.pl gone %PWD/%LOGDIR/test%TESTNUMBER.dir
|
||||
</postcheck>
|
||||
<file name="%LOGDIR/file%TESTNUMBER.txt">
|
||||
Dummy test file for rmdir test
|
||||
</file>
|
||||
@ -40,5 +37,8 @@ Dummy test file for rmdir test
|
||||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/test%TESTNUMBER.pl gone %PWD/%LOGDIR/test%TESTNUMBER.dir
|
||||
</postcheck>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -29,9 +29,6 @@ SFTP post-quote rename
|
||||
<command>
|
||||
--key %LOGDIR/server/curl_client_key --pubkey %LOGDIR/server/curl_client_key.pub -u %USER: -Q "-rename %PWD/%LOGDIR/test%TESTNUMBER.dir %PWD/%LOGDIR/test%TESTNUMBER.new" sftp://%HOSTIP:%SSHPORT%SSH_PWD/%LOGDIR/file%TESTNUMBER.txt --insecure
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/test610.pl rmdir %PWD/%LOGDIR/test%TESTNUMBER.new
|
||||
</postcheck>
|
||||
<file name="%LOGDIR/file%TESTNUMBER.txt">
|
||||
Dummy test file for rename test
|
||||
</file>
|
||||
@ -40,5 +37,8 @@ Dummy test file for rename test
|
||||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/test610.pl rmdir %PWD/%LOGDIR/test%TESTNUMBER.new
|
||||
</postcheck>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -26,9 +26,6 @@ SFTP post-quote remove file
|
||||
<command>
|
||||
--key %LOGDIR/server/curl_client_key --pubkey %LOGDIR/server/curl_client_key.pub -u %USER: -T %LOGDIR/file%TESTNUMBER.txt -Q "-rm %PWD/%LOGDIR/file%TESTNUMBER.txt" sftp://%HOSTIP:%SSHPORT%SSH_PWD/%LOGDIR/upload.%TESTNUMBER --insecure
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/test610.pl gone %PWD/%LOGDIR/test%TESTNUMBER.txt
|
||||
</postcheck>
|
||||
<file name="%LOGDIR/file%TESTNUMBER.txt">
|
||||
Dummy test file for remove test
|
||||
</file>
|
||||
@ -40,5 +37,8 @@ Dummy test file for remove test
|
||||
<upload>
|
||||
Dummy test file for remove test
|
||||
</upload>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/test610.pl gone %PWD/%LOGDIR/test%TESTNUMBER.txt
|
||||
</postcheck>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -31,13 +31,13 @@ SFTP directory retrieval
|
||||
<command>
|
||||
--key %LOGDIR/server/curl_client_key --pubkey %LOGDIR/server/curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%SSH_PWD/%LOGDIR/test%TESTNUMBER.dir/ --insecure
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/test%TESTNUMBER.pl postprocess %PWD/%LOGDIR/test%TESTNUMBER.dir %PWD/%LOGDIR/curl%TESTNUMBER.out
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/test%TESTNUMBER.pl postprocess %PWD/%LOGDIR/test%TESTNUMBER.dir %PWD/%LOGDIR/curl%TESTNUMBER.out
|
||||
</postcheck>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -32,13 +32,13 @@ SFTP pre-quote chmod
|
||||
<command>
|
||||
--key %LOGDIR/server/curl_client_key --pubkey %LOGDIR/server/curl_client_key.pub -u %USER: -Q "chmod 444 %PWD/%LOGDIR/test%TESTNUMBER.dir/plainfile.txt" sftp://%HOSTIP:%SSHPORT%SSH_PWD/%LOGDIR/test%TESTNUMBER.dir/ --insecure
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/test613.pl postprocess %PWD/%LOGDIR/test%TESTNUMBER.dir %PWD/%LOGDIR/curl%TESTNUMBER.out
|
||||
</postcheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/test613.pl postprocess %PWD/%LOGDIR/test%TESTNUMBER.dir %PWD/%LOGDIR/curl%TESTNUMBER.out
|
||||
</postcheck>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -22,9 +22,6 @@ SFTP put remote failure
|
||||
<command>
|
||||
--key %LOGDIR/server/curl_client_key --pubkey %LOGDIR/server/curl_client_key.pub -u %USER: -T %LOGDIR/file%TESTNUMBER.txt sftp://%HOSTIP:%SSHPORT%SSH_PWD/%LOGDIR/test%TESTNUMBER.dir/rofile.txt --insecure
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/test613.pl postprocess %PWD/%LOGDIR/test%TESTNUMBER.dir
|
||||
</postcheck>
|
||||
<file name="%LOGDIR/file%TESTNUMBER.txt">
|
||||
Test data
|
||||
for ssh upload test
|
||||
@ -37,5 +34,8 @@ for ssh upload test
|
||||
<errorcode>
|
||||
9
|
||||
</errorcode>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/test613.pl postprocess %PWD/%LOGDIR/test%TESTNUMBER.dir
|
||||
</postcheck>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -24,9 +24,6 @@ SFTP put with --ftp-create-dirs
|
||||
<command>
|
||||
--ftp-create-dirs --key %LOGDIR/server/curl_client_key --pubkey %LOGDIR/server/curl_client_key.pub -u %USER: -T %LOGDIR/file%TESTNUMBER.txt sftp://%HOSTIP:%SSHPORT%SSH_PWD/%LOGDIR/test%TESTNUMBER.dir/upload.%TESTNUMBER --insecure
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/test610.pl move %PWD/%LOGDIR/test%TESTNUMBER.dir/upload.%TESTNUMBER %PWD/%LOGDIR/upload.%TESTNUMBER rmdir %PWD/%LOGDIR/test%TESTNUMBER.dir
|
||||
</postcheck>
|
||||
<file name="%LOGDIR/file%TESTNUMBER.txt">
|
||||
Test data
|
||||
for ssh upload test
|
||||
@ -40,5 +37,8 @@ for ssh upload test
|
||||
Test data
|
||||
for ssh upload test
|
||||
</upload>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/test610.pl move %PWD/%LOGDIR/test%TESTNUMBER.dir/upload.%TESTNUMBER %PWD/%LOGDIR/upload.%TESTNUMBER rmdir %PWD/%LOGDIR/test%TESTNUMBER.dir
|
||||
</postcheck>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -24,9 +24,6 @@ SFTP put with --ftp-create-dirs twice
|
||||
<command>
|
||||
--ftp-create-dirs --key %LOGDIR/server/curl_client_key --pubkey %LOGDIR/server/curl_client_key.pub -u %USER: -T %LOGDIR/file%TESTNUMBER.txt sftp://%HOSTIP:%SSHPORT%SSH_PWD/%LOGDIR/test%TESTNUMBER.a/upload.%TESTNUMBER -T %LOGDIR/file%TESTNUMBER.txt sftp://%HOSTIP:%SSHPORT%SSH_PWD/%LOGDIR/test%TESTNUMBER.b/upload.%TESTNUMBER --insecure
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/test610.pl move %PWD/%LOGDIR/test%TESTNUMBER.a/upload.%TESTNUMBER %PWD/%LOGDIR/upload.%TESTNUMBER rmdir %PWD/%LOGDIR/test%TESTNUMBER.a rm %PWD/%LOGDIR/test%TESTNUMBER.b/upload.%TESTNUMBER rmdir %PWD/%LOGDIR/test%TESTNUMBER.b
|
||||
</postcheck>
|
||||
<file name="%LOGDIR/file%TESTNUMBER.txt">
|
||||
Test data
|
||||
for ssh upload test
|
||||
@ -40,5 +37,8 @@ for ssh upload test
|
||||
Test data
|
||||
for ssh upload test
|
||||
</upload>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/test610.pl move %PWD/%LOGDIR/test%TESTNUMBER.a/upload.%TESTNUMBER %PWD/%LOGDIR/upload.%TESTNUMBER rmdir %PWD/%LOGDIR/test%TESTNUMBER.a rm %PWD/%LOGDIR/test%TESTNUMBER.b/upload.%TESTNUMBER rmdir %PWD/%LOGDIR/test%TESTNUMBER.b
|
||||
</postcheck>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -26,9 +26,6 @@ SFTP quote remove file with NOBODY
|
||||
<command>
|
||||
--key %LOGDIR/server/curl_client_key --pubkey %LOGDIR/server/curl_client_key.pub -u %USER: -I -Q "rm %PWD/%LOGDIR/file%TESTNUMBER.txt" sftp://%HOSTIP:%SSHPORT --insecure
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/test610.pl gone %PWD/%LOGDIR/test%TESTNUMBER.txt
|
||||
</postcheck>
|
||||
<file name="%LOGDIR/file%TESTNUMBER.txt">
|
||||
Dummy test file for remove test
|
||||
</file>
|
||||
@ -39,5 +36,8 @@ Dummy test file for remove test
|
||||
<verify>
|
||||
<protocol>
|
||||
</protocol>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/test610.pl gone %PWD/%LOGDIR/test%TESTNUMBER.txt
|
||||
</postcheck>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -31,9 +31,6 @@ SFTP post-quote rename * asterisk accept-fail
|
||||
<command>
|
||||
--key %LOGDIR/server/curl_client_key --pubkey %LOGDIR/server/curl_client_key.pub -u %USER: -Q "-*rename %PWD/%LOGDIR/test%TESTNUMBER.dir %PWD/%LOGDIR/test%TESTNUMBER.new" sftp://%HOSTIP:%SSHPORT%SSH_PWD/%LOGDIR/file%TESTNUMBER.txt --insecure
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/test610.pl rmdir %PWD/%LOGDIR/test%TESTNUMBER.new
|
||||
</postcheck>
|
||||
<file name="%LOGDIR/file%TESTNUMBER.txt">
|
||||
Dummy test file for rename test
|
||||
</file>
|
||||
@ -42,5 +39,8 @@ Dummy test file for rename test
|
||||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/test610.pl rmdir %PWD/%LOGDIR/test%TESTNUMBER.new
|
||||
</postcheck>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -31,9 +31,6 @@ SFTP post-quote rename * asterisk accept-fail
|
||||
<command>
|
||||
--key %LOGDIR/server/curl_client_key --pubkey %LOGDIR/server/curl_client_key.pub -u %USER: -Q "-*rename %PWD/%LOGDIR/test%TESTNUMBER-not-exists-dir %PWD/%LOGDIR/test%TESTNUMBER.new" sftp://%HOSTIP:%SSHPORT%SSH_PWD/%LOGDIR/file%TESTNUMBER.txt --insecure
|
||||
</command>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/test610.pl rmdir %PWD/%LOGDIR/test%TESTNUMBER.dir
|
||||
</postcheck>
|
||||
<file name="%LOGDIR/file%TESTNUMBER.txt">
|
||||
Dummy test file for rename test
|
||||
</file>
|
||||
@ -42,5 +39,8 @@ Dummy test file for rename test
|
||||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<postcheck>
|
||||
perl %SRCDIR/libtest/test610.pl rmdir %PWD/%LOGDIR/test%TESTNUMBER.dir
|
||||
</postcheck>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
||||
@ -38,7 +38,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/include \
|
||||
-I$(top_srcdir)/tests/libtest
|
||||
|
||||
EXTRA_DIST = test307.pl test610.pl test613.pl test1013.pl test1022.pl \
|
||||
notexists.pl CMakeLists.txt mk-lib1521.pl .checksrc
|
||||
CMakeLists.txt mk-lib1521.pl .checksrc
|
||||
|
||||
CFLAG_CURL_SYMBOL_HIDING = @CFLAG_CURL_SYMBOL_HIDING@
|
||||
|
||||
|
||||
@ -1,38 +0,0 @@
|
||||
#!/usr/bin/env perl
|
||||
#***************************************************************************
|
||||
# _ _ ____ _
|
||||
# Project ___| | | | _ \| |
|
||||
# / __| | | | |_) | |
|
||||
# | (__| |_| | _ <| |___
|
||||
# \___|\___/|_| \_\_____|
|
||||
#
|
||||
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
#
|
||||
# This software is licensed as described in the file COPYING, which
|
||||
# you should have received as part of this distribution. The terms
|
||||
# are also available at https://curl.se/docs/copyright.html.
|
||||
#
|
||||
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||
# copies of the Software, and permit persons to whom the Software is
|
||||
# furnished to do so, under the terms of the COPYING file.
|
||||
#
|
||||
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||
# KIND, either express or implied.
|
||||
#
|
||||
# SPDX-License-Identifier: curl
|
||||
#
|
||||
###########################################################################
|
||||
# Check that given arguments do not exist on filesystem.
|
||||
my $code = 0;
|
||||
if ($#ARGV < 0) {
|
||||
print "Usage: $0 file1 [fileN]\n";
|
||||
exit 2;
|
||||
}
|
||||
while (@ARGV) {
|
||||
my $fname = shift @ARGV;
|
||||
if (-e $fname) {
|
||||
print "Found '$fname' when not supposed to exist.\n";
|
||||
$code = 1;
|
||||
}
|
||||
}
|
||||
exit $code;
|
||||
@ -1130,6 +1130,11 @@ sub singletest_postcheck {
|
||||
|
||||
# run the postcheck command
|
||||
my @postcheck= getpart("client", "postcheck");
|
||||
if(@postcheck) {
|
||||
die "test$testnum uses client/postcheck";
|
||||
}
|
||||
|
||||
@postcheck= getpart("verify", "postcheck");
|
||||
if(@postcheck) {
|
||||
my $cmd = join("", @postcheck);
|
||||
chomp $cmd;
|
||||
|
||||
@ -1714,6 +1714,25 @@ sub singletest_check {
|
||||
$ok .= "-"; # memory not checked
|
||||
}
|
||||
|
||||
my @notexists = getpart("verify", "notexists");
|
||||
if(@notexists) {
|
||||
# a list of directory entries that must not exist
|
||||
my $err;
|
||||
while (@notexists) {
|
||||
my $fname = shift @notexists;
|
||||
chomp $fname;
|
||||
if (-e $fname) {
|
||||
logmsg "Found '$fname' when not supposed to exist.\n";
|
||||
$err++;
|
||||
}
|
||||
elsif($verbose) {
|
||||
logmsg "Found '$fname' confirmed to not exist.\n";
|
||||
}
|
||||
}
|
||||
if($err) {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
if($valgrind) {
|
||||
if($usedvalgrind) {
|
||||
if(!opendir(DIR, "$logdir")) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user