xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | runtests.pl |
| 5 | </keywords> |
| 6 | </info> |
| 7 | |
| 8 | # |
| 9 | # Client-side |
| 10 | <client> |
| 11 | <server> |
| 12 | none |
| 13 | </server> |
| 14 | <name> |
| 15 | Verify that runtests.pl accepts an exclude file with the -E option |
| 16 | </name> |
| 17 | |
| 18 | <command type="perl"> |
| 19 | %SRCDIR/runtests.pl -o TESTDIR=%SRCDIR/log/data -o LOGDIR=%SRCDIR/log/log -E %SRCDIR/log/test%TESTNUMBER-exclude-file 1 |
| 20 | </command> |
| 21 | <precheck> |
| 22 | 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 |
| 23 | </precheck> |
| 24 | <postcheck> |
| 25 | grep -q "Test should not run for unit test %TESTNUMBER" %SRCDIR/log/stdout%TESTNUMBER |
| 26 | </postcheck> |
| 27 | |
| 28 | </client> |
| 29 | |
| 30 | <verify> |
| 31 | <errorcode> |
| 32 | 1 |
| 33 | </errorcode> |
| 34 | </verify> |
| 35 | |
| 36 | </testcase> |