2012-11-17 19:12:42 +08:00
<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">
2023-03-31 06:34:16 +08:00
%SRCDIR/runtests.pl -o TESTDIR=%LOGDIR/data -o LOGDIR=%LOGDIR/log -E %LOGDIR/test%TESTNUMBER-exclude-file 1
2012-11-17 19:12:42 +08:00
</command>
<precheck>
2023-03-31 06:34:16 +08:00
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
2012-11-17 19:12:42 +08:00
</precheck>
<postcheck>
2023-03-31 06:34:16 +08:00
grep -q "Test should not run for unit test %TESTNUMBER" %LOGDIR/stdout%TESTNUMBER
2012-11-17 19:12:42 +08:00
</postcheck>
</client>
<verify>
<errorcode>
1
</errorcode>
</verify>
</testcase>