CppUnit::TestFactoryRegistry::getRegistry();
// Add the top suite to the test runner
TestLib_Runner runner;
- //QString aPath = qgetenv( "HYDRO_SRC_DIR" ) + "/src/tests.cfg";
- //runner.Load( aPath.toStdString() );
+ QString aPath = qgetenv( "HYDRO_SRC_DIR" ) + "/src/tests.cfg";
+ runner.Load( aPath.toStdString() );
runner.addTest( registry.makeTest() );
try
{
return 0;
}
bool isOK = result.wasSuccessful();
+
+#ifndef WIN32
DEBTRACE("End of tests");
+#endif
+
aWindow->close();
aSession.closeSession();
anApp.exit(!isOK);
+
+#ifndef WIN32
DEBTRACE("--- TODO: exception on exit..."); // TODO: exception on exit...
+#endif
+
+ int ms = progress.GetCompleteTimeInMS();
+ printf( "\n\n" );
+ printf( "%i TESTS in %i SUITES\n", progress.GetNbTests(), progress.GetNbSuites() );
+ printf( "COMPLETE TESTS TIME: %i ms\n", ms );
+ progress.DumpFailures();
+
return result.wasSuccessful() ? 0 : 1;
}