antioch-0.4.0
Functions
standard_unit_tests.C File Reference
#include "antioch_config.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 ( )

Definition at line 34 of file standard_unit_tests.C.

35 {
36 #ifdef ANTIOCH_HAVE_CPPUNIT
37  CppUnit::TextUi::TestRunner runner;
38  CppUnit::TestFactoryRegistry &registry = CppUnit::TestFactoryRegistry::getRegistry();
39  runner.addTest( registry.makeTest() );
40 
41  // If the tests all succeed, report success
42  if (runner.run())
43  return 0;
44 
45  // If any test fails report failure
46  return 1;
47 
48 #else
49  // If we don't have CPPUnit, report we skipped
50  // 77 return code tells Automake we skipped this.
51  return 77;
52 #endif // ANTIOCH_HAVE_CPPUNIT
53 }

Generated on Thu Jul 7 2016 11:09:48 for antioch-0.4.0 by  doxygen 1.8.8