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