corelib/tests/run-test.cc

14 lines
426 B
C++
Raw Permalink Normal View History

#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;
}