1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
<?xml version="1.0" encoding="US-ASCII"?>
<testcase>
<info>
<keywords>
runtests.pl
</keywords>
</info>
# Client-side
<client>
<name>
Verify that runtests.pl accepts an exclude file with the -E option
</name>
<command type="perl">
%SRCDIR/runtests.pl -o TESTDIR=%LOGDIR/data -o LOGDIR=%LOGDIR/log -E %LOGDIR/test%TESTNUMBER-exclude-file 1
</command>
<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>
</client>
<verify>
<errorcode>
1
</errorcode>
<postcheck>
grep -q "Test should not run for unit test %TESTNUMBER" %LOGDIR/stdout%TESTNUMBER
</postcheck>
</verify>
</testcase>
|