2 $Id: LockerTest.cpp 301 2002-07-18 05:32:00Z tylerdauwalder $
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.
11 #include "ConstructionTest1.h"
12 #include "ConcurrencyTest1.h"
13 #include "ConcurrencyTest2.h"
14 #include "DestructionTest1.h"
15 #include "DestructionTest2.h"
16 #include "BenaphoreLockCountTest1.h"
17 #include "SemaphoreLockCountTest1.h"
18 #include "LockerTest.h"
19 #include "cppunit/Test.h"
20 #include "cppunit/TestSuite.h"
24 * Function: addonTestFunc()
25 * Descr: This function is called by the test application to
26 * get a pointer to the test to run. The BLocker test
27 * is a test suite. A series of tests are added to
28 * the suite. Each test appears twice, once for
29 * the Be implementation of BLocker, once for the
30 * OpenBeOS implementation.
33 CppUnit::Test
* LockerTestSuite()
35 CppUnit::TestSuite
*testSuite
= new CppUnit::TestSuite();
37 testSuite
->addTest(ConstructionTest1::suite());
38 testSuite
->addTest(ConcurrencyTest1::suite());
39 testSuite
->addTest(ConcurrencyTest2::suite());
40 testSuite
->addTest(DestructionTest1::suite());
41 testSuite
->addTest(DestructionTest2::suite());
42 testSuite
->addTest(BenaphoreLockCountTest1::suite());
43 testSuite
->addTest(SemaphoreLockCountTest1::suite());