Back to index

nordugrid-arc-nox  1.1.0~rc6
Functions
Test.cpp File Reference
#include <cppunit/CompilerOutputter.h>
#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/ui/text/TestRunner.h>

Go to the source code of this file.

Functions

int main ()

Function Documentation

int main ( void  )

Definition at line 5 of file Test.cpp.

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