mirror of
https://github.com/moparisthebest/curl
synced 2024-11-15 22:15:13 -05:00
e2b4df7b5e
This makes the tests easier to copy and relocate to other test numbers without having to update content. Closes #6738
37 lines
743 B
Plaintext
37 lines
743 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
runtests.pl
|
|
</keywords>
|
|
</info>
|
|
|
|
#
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
none
|
|
</server>
|
|
<name>
|
|
Verify that runtests.pl accepts an exclude file with the -E option
|
|
</name>
|
|
|
|
<command type="perl">
|
|
%SRCDIR/runtests.pl -o TESTDIR=%SRCDIR/log/data -o LOGDIR=%SRCDIR/log/log -E %SRCDIR/log/test%TESTNUMBER-exclude-file 1
|
|
</command>
|
|
<precheck>
|
|
mkdir %SRCDIR/log/data ; mkdir %SRCDIR/log/log; cp %SRCDIR/data/test1 %SRCDIR/log/data; echo 'test:1:Test should not run for unit test %TESTNUMBER' > %SRCDIR/log/test%TESTNUMBER-exclude-file
|
|
</precheck>
|
|
<postcheck>
|
|
grep -q "Test should not run for unit test %TESTNUMBER" %SRCDIR/log/stdout%TESTNUMBER
|
|
</postcheck>
|
|
|
|
</client>
|
|
|
|
<verify>
|
|
<errorcode>
|
|
1
|
|
</errorcode>
|
|
</verify>
|
|
|
|
</testcase>
|