File: tomaintest.cpp

package info (click to toggle)
tora 2.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 27,840 kB
  • ctags: 22,156
  • sloc: cpp: 191,995; sh: 17,549; makefile: 702; python: 159; ansic: 75; xml: 69
file content (17 lines) | stat: -rw-r--r-- 549 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <cppunit/CompilerOutputter.h>
#include <cppunit/ui/text/TestRunner.h>
#include <cppunit/extensions/TestFactoryRegistry.h>
#include <iostream>
using std::cerr;

int main( int argc, char** argv )
{
  CppUnit::TextUi::TestRunner runner; // fuer TextUi
  runner.addTest( CPPUNIT_NS::TestFactoryRegistry::getRegistry().makeTest() );
  runner.setOutputter( new CppUnit::CompilerOutputter( &runner.result(), // fuer TextUi
						       std::cerr ) );        // fuer TextUi 

  bool wasSucessful = runner.run( );

  return wasSucessful ? 0 : 1; 
}