File: cppunit_main.cpp

package info (click to toggle)
tagua 1.0~alpha2-16-g618c6a0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 8,000 kB
  • sloc: cpp: 26,141; ansic: 13,039; makefile: 183; ruby: 88; sh: 39
file content (12 lines) | stat: -rw-r--r-- 346 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/ui/text/TestRunner.h>

int main(int, char**)
{
  CppUnit::TextUi::TestRunner runner;
  CppUnit::TestFactoryRegistry &registry = CppUnit::TestFactoryRegistry::getRegistry();
  runner.addTest(registry.makeTest());
  int res = runner.run( "", false ) ? 0 : 1;
  
  return res;
}