X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDRO_tests%2Ftest_HYDROData_Main.cxx;h=151bb2b561eaefb87d4793b2e15ae7fc9cc2a2d1;hb=f709724a7a412254db7ee6ca094b01b6dc75e82b;hp=5b1367cbd1f5020e586b10b1f8014ea601d5e5d6;hpb=158b3949f0d12e3a4b36c6f37b270e0f7f037262;p=modules%2Fhydro.git diff --git a/src/HYDRO_tests/test_HYDROData_Main.cxx b/src/HYDRO_tests/test_HYDROData_Main.cxx index 5b1367cb..151bb2b5 100644 --- a/src/HYDRO_tests/test_HYDROData_Main.cxx +++ b/src/HYDRO_tests/test_HYDROData_Main.cxx @@ -20,10 +20,10 @@ #include #include #include -#include -#include #include #include +#include +#include #include #include #include @@ -32,7 +32,7 @@ int main( int argc, char* argv[] ) { - srand( time( 0 ) ); + srand( 0 ); QApplication anApp( argc, argv ); SUIT_Session aSession; @@ -51,18 +51,20 @@ int main( int argc, char* argv[] ) controller.addListener( &result ); // Add a listener that print dots as test run. - CppUnit::TextTestProgressListener progress; + TestLib_Listener progress; controller.addListener( &progress ); CppUnit::TestFactoryRegistry& registry = CppUnit::TestFactoryRegistry::getRegistry(); // Add the top suite to the test runner - CppUnit::TestRunner runner; + TestLib_Runner runner; + QString aPath = qgetenv( "HYDRO_SRC_DIR" ) + "/src/tests.cfg"; + runner.Load( aPath.toStdString() ); runner.addTest( registry.makeTest() ); try { - std::cout << "Running " << testPath; - runner.run( controller, testPath ); + std::cout << "Running tests " << testPath << "..." << std::endl; + runner.Run( controller ); std::cerr << std::endl;