mirror of
https://github.com/worldforge/ember
synced 2026-08-13 16:23:06 -04:00
26 lines
500 B
C++
26 lines
500 B
C++
#ifdef USE_CPP_UNIT
|
|
#include <cppunit/extensions/TestFactoryRegistry.h>
|
|
#include <cppunit/ui/text/TestRunner.h>
|
|
|
|
#include "DataModelTest.h"
|
|
|
|
|
|
bool runTests()
|
|
{
|
|
dime::DataModelTestCase myTest;
|
|
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
|