Migrated the BMessenger tests to the new test framework.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@333 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2002-07-19 14:08:36 +00:00
parent a6b33ea3de
commit bb653c6459
4 changed files with 67 additions and 1 deletions

View File

@ -0,0 +1,20 @@
#include <TestSuite.h>
#include <TestSuiteAddon.h>
// ##### Include headers for your tests here #####
//#include "bhandler/HandlerTest.h"
//#include "blooper/LooperTest.h"
//#include "bmessagequeue/MessageQueueTest.h"
#include "bmessenger/MessengerTest.h"
BTestSuite* getTestSuite() {
BTestSuite *suite = new BTestSuite("App");
// ##### Add test suites here #####
// suite->addTest("BHandler", HandlerTestSuite());
// suite->addTest("BLooper", LooperTestSuite());
// suite->addTest("BMessageQueue", MessageQueueTestSuite());
suite->addTest("BMessenger", MessengerTestSuite());
return suite;
}

View File

@ -1,6 +1,28 @@
SubDir OBOS_TOP src tests kits app ;
# Let Jam know where to find some of our source files
#SEARCH_SOURCE += [ FDirName $(SUBDIR) bhandler ] ;
#SEARCH_SOURCE += [ FDirName $(SUBDIR) blooper ] ;
#SEARCH_SOURCE += [ FDirName $(SUBDIR) bmessagequeue ] ;
SEARCH_SOURCE += [ FDirName $(SUBDIR) bmessenger ] ;
CommonTestLib libapptest.so
: AppKitTestAddon.cpp
# BMessenger
MessengerTest.cpp
BMessengerTester.cpp
LockTargetTester.cpp
TargetTester.cpp
: <boot!home!config!lib>libopenbeos.so
be stdc++.r4
: be stdc++.r4
:
: app support
;
SubInclude OBOS_TOP src tests kits app bhandler ;
SubInclude OBOS_TOP src tests kits app blooper ;
#SubInclude OBOS_TOP src tests kits app bmessageQueue ;
SubInclude OBOS_TOP src tests kits app bmessenger ;
#SubInclude OBOS_TOP src tests kits app bmessenger ;

View File

@ -0,0 +1,15 @@
#include "../common.h"
#include "BMessengerTester.h"
#include "LockTargetTester.h"
#include "TargetTester.h"
CppUnit::Test* MessengerTestSuite()
{
CppUnit::TestSuite *testSuite = new CppUnit::TestSuite();
testSuite->addTest(LockTargetTester::Suite());
testSuite->addTest(TBMessengerTester::Suite());
testSuite->addTest(TargetTester::Suite());
return testSuite;
}

View File

@ -0,0 +1,9 @@
#ifndef _messenger_test_h_
#define _messenger_test_h_
class CppUnit::Test;
CppUnit::Test* MessengerTestSuite();
#endif // _messenger_test_h_