On Tuesday 15 May 2012, David Faure wrote: > On Sunday 13 May 2012 00:04:43 Alexander Neundorf wrote: > > Hi, > > > > just a quick hint, maybe you don't know this yet: > > > > You can run tests using "make test". > > This will run test by test after each other. > > Internally this simply calls ctest. > > > > If you call ctest manually, you can use extra command line options, and, > > it supports -jN, as make does. > > > > So, if you have 4 cores, run > > ctest -j4 > > to have it execute 4 tests in parallel and save time this way. > > Save time... but at the expense of more failures, if the tests aren't > ready for this ;-) > > E.g. in kdelibs I get 3 more failures, due to ksycoca-related tests > creating and removing services that show up in other tests' queries, or > other tests reading and writing from the same shared files.
There are several properties which can be set on tests: http://www.cmake.org/cmake/help/v2.8.8/cmake.html#section_PropertiesonTests among them RUN_SERIAL and DEPENDS (and COST). Using them it should be possible to avoid such failures (but I haven't used this myself yet). Alex
