From c602de1c3e7498aae546101fba7b557187dc578b Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Mon, 13 Jul 2009 18:24:55 +0200 Subject: 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. --- HACKING | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'HACKING') diff --git a/HACKING b/HACKING index fe77fc64..b5ec12b7 100644 --- a/HACKING +++ b/HACKING @@ -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 -- cgit v1.2.3