Loading tests/unit-tests/tnl-unit-tests.h +22 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,13 @@ * * ***************************************************************************/ #ifndef TNL_UNIT_TESTS_H #define TNL_UNIT_TESTS_H #include <tnlConfig.h> #ifdef HAVE_CPPUNIT #include <cppunit/ui/text/TestRunner.h> #include <debug/tnlDebug.h> Loading Loading @@ -143,3 +150,18 @@ int main( int argc, char* argv[] ) runner.run(); return 0; } #else // HAVE_CPPUNIT #include <iostream> using namespace std; int main( int argc, char* argv[] ) { cerr << "UNIT TESTS ARE DISABLED." << endl; return 0; } #endif // HAVE_CPPUNIT #endif // TNL_UNIT_TESTS_H tnlConfig.h.in +2 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,8 @@ @HAVE_CUSPARSE@ @HAVE_CPPUNIT@ #define TNL_CONFIG_DIRECTORY @configDirectory@ #define TNL_SOURCE_DIRECTORY @sourceDirectory@ Loading Loading
tests/unit-tests/tnl-unit-tests.h +22 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,13 @@ * * ***************************************************************************/ #ifndef TNL_UNIT_TESTS_H #define TNL_UNIT_TESTS_H #include <tnlConfig.h> #ifdef HAVE_CPPUNIT #include <cppunit/ui/text/TestRunner.h> #include <debug/tnlDebug.h> Loading Loading @@ -143,3 +150,18 @@ int main( int argc, char* argv[] ) runner.run(); return 0; } #else // HAVE_CPPUNIT #include <iostream> using namespace std; int main( int argc, char* argv[] ) { cerr << "UNIT TESTS ARE DISABLED." << endl; return 0; } #endif // HAVE_CPPUNIT #endif // TNL_UNIT_TESTS_H
tnlConfig.h.in +2 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,8 @@ @HAVE_CUSPARSE@ @HAVE_CPPUNIT@ #define TNL_CONFIG_DIRECTORY @configDirectory@ #define TNL_SOURCE_DIRECTORY @sourceDirectory@ Loading