2017-11-01 20:14:23 +01:00
|
|
|
#include <cppunit/CompilerOutputter.h>
|
|
|
|
#include <cppunit/extensions/TestFactoryRegistry.h>
|
|
|
|
#include <cppunit/ui/text/TextTestRunner.h>
|
|
|
|
|
2017-11-01 23:21:01 +01:00
|
|
|
int main( int , char *[] )
|
2017-11-01 20:14:23 +01:00
|
|
|
{
|
|
|
|
CppUnit::TextTestRunner runner;
|
|
|
|
runner.addTest( CppUnit::TestFactoryRegistry::getRegistry( )
|
|
|
|
.makeTest( ) );
|
|
|
|
runner.setOutputter( new CppUnit::CompilerOutputter(
|
|
|
|
&runner.result( ), std::cerr ) );
|
|
|
|
return runner.run( ) ? EXIT_SUCCESS : EXIT_FAILURE;
|
|
|
|
}
|