ember/test/TestServices.cpp
2002-06-01 15:10:07 +00:00

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 &registry = CppUnit::TestFactoryRegistry::getRegistry();
runner.addTest( registry.makeTest() );
bool wasSucessful = runner.run( "", false );
return wasSucessful;
}
#else
bool runTests()
{
return true;
}
#endif