cmake still gets it wrong for test dependencies. Use ""test fixtures"" as a fix ?
Imported issue: Initially reported by @thome in https://gforge.inria.fr/tracker/?group_id=2065&aid=21344
If I do, on a fresh build:
CADO_DEBUG=1 DEBUG=1 make -j8 check ARGS=""-R F9_sievetest""
Then the test will fail. This is even though the F9_sievetest is marked as depending on F9_makefbtest. It turns out that ctest's use of ""-R"" does not imply ""including the dependencies"". Worse, there does not seem a way to run a specific test with its dependencies, which is terribly frustrating (added to the fact that having a build target which runs ctest does not work well either, as experience has shown).
This is exactly illustrated by
http://public.kitware.com/pipermail/cmake/2010-March/035788.html
A request that got answered, say, unsatisfactorily.
As it turns out, there's a recent feature which could well be just what we need here (of course we'd love to have cmake/ctest understand tests as targets in their own right instead, but I doubt this will ever happen).
https://crascit.com/2016/10/18/test-fixtures-with-cmake-ctest/
Should we implement that for the F9 tests ?