1/*
2	$Id: LockerTest.cpp 301 2002-07-18 05:32:00Z tylerdauwalder $
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 "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"
21
22
23/*
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 *             Haiku implementation.
31 */
32
33CppUnit::Test* LockerTestSuite()
34{
35	CppUnit::TestSuite *testSuite = new CppUnit::TestSuite();
36
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());
44
45	return testSuite;
46}
47
48
49
50
51