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