mirror of
https://github.com/worldforge/ember
synced 2026-08-13 16:23:06 -04:00
* test/Makefile.am, StateManagerTest.cpp, TestServices.cpp: cut
out StateManager from the tests till I've finished redoing it.
* StateManager.cpp, StateManager.h: stripping this down, need to
do things another way.
* Label.h, Console.cpp, Console.h: Changed FONT_FILE to a static
const char* const, changed to wf_opal.ttf.
* configure.ac: bumped required sigc++-1.2 version to 1.2.1 .
31 lines
715 B
C++
31 lines
715 B
C++
#ifdef USE_CPP_UNIT
|
|
#include <cppunit/extensions/TestFactoryRegistry.h>
|
|
#include <cppunit/ui/text/TestRunner.h>
|
|
|
|
#include "DataModelTest.h"
|
|
#include "InputServiceTest.h"
|
|
//#include "StateManagerTest.h"
|
|
|
|
CPPUNIT_TEST_SUITE_REGISTRATION( dime::DataModelTestCase );
|
|
CPPUNIT_TEST_SUITE_REGISTRATION( dime::InputServiceTestCase );
|
|
//CPPUNIT_TEST_SUITE_REGISTRATION( dime::StateManagerTestCase );
|
|
|
|
|
|
bool runTests()
|
|
{
|
|
CppUnit::TextUi::TestRunner runner;
|
|
CppUnit::TestFactoryRegistry ®istry = CppUnit::TestFactoryRegistry::getRegistry();
|
|
runner.addTest( registry.makeTest() );
|
|
bool wasSucessful = runner.run( "", false );
|
|
|
|
return wasSucessful;
|
|
}
|
|
|
|
#else
|
|
|
|
bool runTests()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
#endif
|