antioch-0.4.0
Functions
vexcl_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 vexcl_unit_tests.C.

35 {
36 #ifdef ANTIOCH_HAVE_VEXCL
37 #ifdef ANTIOCH_HAVE_CPPUNIT
38  CppUnit::TextUi::TestRunner runner;
39  CppUnit::TestFactoryRegistry &registry = CppUnit::TestFactoryRegistry::getRegistry();
40  runner.addTest( registry.makeTest() );
41 
42  // If the tests all succeed, report success
43  if (runner.run())
44  return 0;
45 
46  // If any test fails report failure
47  return 1;
48 #else // ANTIOCH_HAVE_CPPUNIT
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 
54 #else // ANTIOCH_HAVE_VEXCL
55  // If we don't have VexCL, report we skipped
56  // 77 return code tells Automake we skipped this.
57  return 77;
58 #endif // ANTIOCH_HAVE_VEXCL
59 }

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