What is the minimum CMake version (well, really the ctest
version) that we support for running CMake’s test suite? The main reason I’m asking is that it feels well past time that we allow using test fixtures in CMake’s own tests, but I think the last time I asked about this, we had to support building CMake and running its tests with a version earlier than CMake 3.7 (which is when support for fixtures were added).
An example of where this could be used is in the RunCMake.ExternalProject
test. At the moment, if you try to use RunCMake_TEST_FILTER
with that, you still end up with a python server being started up since it is needed by some of those tests. That is a perfect candidate for test fixtures, allowing you to hand over to ctest
the management of starting and stopping that server only if it is needed. I’m sure there are other cases where test fixtures could be used to enforce more robust and more convenient test dependencies (again, I’ve seen a few relating to ExternalProject’s other tests).