diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2009-07-13 18:24:55 +0200 |
---|---|---|
committer | Patrick Ohly <patrick.ohly@intel.com> | 2009-07-13 18:31:48 +0200 |
commit | c602de1c3e7498aae546101fba7b557187dc578b (patch) | |
tree | 07762a3fafe2220a1620dd6bd954b47cf265e306 /HACKING | |
parent | 8c3157d93fa68a2c0badf590438d493e0b2ff179 (diff) |
testing: skip certain tests by listing them in CLIENT_TEST_SKIP
The only way that I found not to execute a test was not to register
it in CPPUnit. FilterTest() does this by replacing a valid test
or test group with a dummy one, SkipTest, which just prints the
test name and that it is skipped.
Registering tests has to be intercepted at multiple levels:
- CPPUNIT_TEST in test suites
- ADD_TEST in ClientTest
- addTest in ClientTest
Not currently intercepted are complete test suites (CPPUNIT_TEST_SUITE).
The main purpose of this patch is to avoid running the time consuming
suspend and interrupt tests, but this feature might also be useful for
other tests, which is why it was implemented in a more general way.
Diffstat (limited to 'HACKING')
-rw-r--r-- | HACKING | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -65,6 +65,10 @@ It understands several environment variables, among them: For unattended testing: - CLIENT_TEST_FAILURES = comma separated list of tests which are allowed to fail without affecting the return code of the test runner +- CLIENT_TEST_SKIP = comma separated list of tests or test groups which + are not to be executed at all; for this to work the test or test group + has to be passed through test.h's version of ADD_TEST or FilterTest, + which is the case for most tests but not all - CLIENT_TEST_LOG = name of server log file, will be copied and reset after each sync - CLIENT_TEST_ALARM = number of seconds a single test is allowed to run |