1 /* 2 $Id: AutolockTestAddon.cpp 10 2002-07-09 12:24:59Z ejakowatz $ 3 4 This file declares the addonTestName string and addonTestFunc 5 function for the BLocker tests. These symbols will be used 6 when the addon is loaded. 7 8 */ 9 10 11 #include "AutolockLockerTest.h" 12 #include "AutolockLooperTest.h" 13 #include <Autolock.h> 14 #include "Autolock.h" 15 #include "TestAddon.h" 16 #include "TestSuite.h" 17 18 19 /* 20 * Function: addonTestFunc() 21 * Descr: This function is called by the test application to 22 * get a pointer to the test to run. The BLocker test 23 * is a test suite. A series of tests are added to 24 * the suite. Each test appears twice, once for 25 * the Be implementation of BLocker, once for the 26 * Haiku implementation. 27 */ 28 29 Test *addonTestFunc(void) 30 { 31 TestSuite *testSuite = new TestSuite("BAutolock"); 32 33 testSuite->addTest(AutolockLockerTest<BAutolock, BLocker>::suite()); 34 testSuite->addTest(AutolockLooperTest<BAutolock, BLooper>::suite()); 35 36 testSuite->addTest( 37 AutolockLockerTest<OpenBeOS::BAutolock, OpenBeOS::BLocker>::suite()); 38 testSuite->addTest( 39 AutolockLooperTest<OpenBeOS::BAutolock, BLooper>::suite()); 40 41 return(testSuite); 42 } 43