Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/unittests/gslvectorunittest.cpp

    rb11d3b rbcf653  
     1/*
     2 * Project: MoleCuilder
     3 * Description: creates and alters molecular systems
     4 * Copyright (C)  2010 University of Bonn. All rights reserved.
     5 * Please see the LICENSE file or "Copyright notice" in builder.cpp for details.
     6 */
     7
    18/*
    29 * gslvectorunittest.cpp
     
    512 *      Author: heber
    613 */
     14
     15// include config.h
     16#ifdef HAVE_CONFIG_H
     17#include <config.h>
     18#endif
    719
    820using namespace std;
     
    1325
    1426#include "gslvectorunittest.hpp"
     27
     28#ifdef HAVE_TESTRUNNER
     29#include "UnitTestMain.hpp"
     30#endif /*HAVE_TESTRUNNER*/
    1531
    1632/********************************************** Test classes **************************************/
     
    114130};
    115131
    116 
    117132/** UnitTest for operators.
    118133 */
     
    160175  CPPUNIT_ASSERT_EQUAL( true, unit.IsOne() );
    161176};
    162 
    163 /********************************************** Main routine **************************************/
    164 
    165 int main(int argc, char **argv)
    166 {
    167   // Get the top level suite from the registry
    168   CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();
    169 
    170   // Adds the test to the list of test to run
    171   CppUnit::TextUi::TestRunner runner;
    172   runner.addTest( suite );
    173 
    174   // Change the default outputter to a compiler error format outputter
    175   runner.setOutputter( new CppUnit::CompilerOutputter( &runner.result(),
    176                                                        std::cerr ) );
    177   // Run the tests.
    178   bool wasSucessful = runner.run();
    179 
    180   // Return error code 1 if the one of test failed.
    181   return wasSucessful ? 0 : 1;
    182 };
Note: See TracChangeset for help on using the changeset viewer.