14 lines
436 B
C++
14 lines
436 B
C++
|
#include <cppunit/CompilerOutputter.h>
|
||
|
#include <cppunit/extensions/TestFactoryRegistry.h>
|
||
|
#include <cppunit/ui/text/TextTestRunner.h>
|
||
|
|
||
|
int main( int argc , char * argv[] )
|
||
|
{
|
||
|
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;
|
||
|
}
|