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:
@@ -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;
|
||||||
|
}
|
||||||
@@ -1,6 +1,28 @@
|
|||||||
SubDir OBOS_TOP src tests kits app ;
|
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 bhandler ;
|
||||||
SubInclude OBOS_TOP src tests kits app blooper ;
|
SubInclude OBOS_TOP src tests kits app blooper ;
|
||||||
#SubInclude OBOS_TOP src tests kits app bmessageQueue ;
|
#SubInclude OBOS_TOP src tests kits app bmessageQueue ;
|
||||||
SubInclude OBOS_TOP src tests kits app bmessenger ;
|
#SubInclude OBOS_TOP src tests kits app bmessenger ;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
#ifndef _messenger_test_h_
|
||||||
|
#define _messenger_test_h_
|
||||||
|
|
||||||
|
class CppUnit::Test;
|
||||||
|
|
||||||
|
CppUnit::Test* MessengerTestSuite();
|
||||||
|
|
||||||
|
#endif // _messenger_test_h_
|
||||||
|
|
||||||
Reference in New Issue
Block a user