Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/unittests/gslvectorunittest.cpp

    r9b6b2f r9fb860  
    1313
    1414#include "gslvectorunittest.hpp"
    15 
    16 #ifdef HAVE_TESTRUNNER
    17 #include "UnitTestMain.hpp"
    18 #endif /*HAVE_TESTRUNNER*/
    1915
    2016/********************************************** Test classes **************************************/
     
    117113    CPPUNIT_ASSERT_EQUAL( (double)(3-j), v->Get(j) );
    118114};
     115
     116
     117/********************************************** Main routine **************************************/
     118
     119int main(int argc, char **argv)
     120{
     121  // Get the top level suite from the registry
     122  CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();
     123
     124  // Adds the test to the list of test to run
     125  CppUnit::TextUi::TestRunner runner;
     126  runner.addTest( suite );
     127
     128  // Change the default outputter to a compiler error format outputter
     129  runner.setOutputter( new CppUnit::CompilerOutputter( &runner.result(),
     130                                                       std::cerr ) );
     131  // Run the tests.
     132  bool wasSucessful = runner.run();
     133
     134  // Return error code 1 if the one of test failed.
     135  return wasSucessful ? 0 : 1;
     136};
Note: See TracChangeset for help on using the changeset viewer.