GRINS-0.8.0
Functions
interface_driver.C File Reference
#include "grins_config.h"
#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/ui/text/TestRunner.h>
Include dependency graph for interface_driver.C:

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

int main ( )

Definition at line 32 of file interface_driver.C.

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

Generated on Tue Dec 19 2017 12:47:29 for GRINS-0.8.0 by  doxygen 1.8.9.1