diff --git a/HACKING b/HACKING index 5e1d2761..e841f33f 100644 --- a/HACKING +++ b/HACKING @@ -79,9 +79,14 @@ can be set via TEST_EVOLUTION_DELAY=. The Sync4j 2.3 server needs a delay of around 20 seconds to work correctly. -The first parameter of the "test" program can be used -to select specific tests, like this: - ./TestEvolution ContactSync::testItems +When invoking TestEvolution without parameters all +tests will be run. Otherwise each test listed on the +command line will be run: + ./TestEvolution ContactSync::testItems \ + ContactSync::testCopy + +For a list of available tests see the TestEvolution.cpp +source code. "make valgrind" runs the same tests inside valgrind [http://www.valgrind.org]. A suppression file is diff --git a/src/TestMain.cpp b/src/TestMain.cpp index db09fd40..534119a5 100644 --- a/src/TestMain.cpp +++ b/src/TestMain.cpp @@ -164,7 +164,15 @@ int main(int argc, char* argv[]) try { // Run the tests. - runner.run(argc > 1 ? argv[1] : "", false, true, false); + if (argc <= 1) { + // all tests + runner.run("", false, true, false); + } else { + // run selected tests individually + for (int test = 1; test < argc; test++) { + runner.run(argv[test], false, true, false); + } + } // Return error code 1 if the one of test failed. return syncListener.hasFailed() ? 1 : 0;