File: Test.cpp

package info (click to toggle)
nordugrid-arc-nox 1.1.0~rc6-2.1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 44,552 kB
  • ctags: 25,532
  • sloc: cpp: 255,243; sh: 12,843; java: 11,722; python: 11,710; perl: 11,451; makefile: 2,633; xml: 2,350; ansic: 599; sed: 16
file content (15 lines) | stat: -rw-r--r-- 438 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <cppunit/CompilerOutputter.h>
#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/ui/text/TestRunner.h>

int main() {
  CppUnit::TextUi::TestRunner runner;
  runner.addTest(CppUnit::TestFactoryRegistry::getRegistry().makeTest());

  runner.setOutputter(CppUnit::CompilerOutputter::defaultOutputter
		      (&runner.result(), std::cerr));

  bool wasSuccessful = runner.run();

  return wasSuccessful ? 0 : 1;
}