CTest fixtures not added when selecting a subset of tests
A simple project: ```cmake cmake_minimum_required (VERSION 3.7) project (foo) enable_testing () add_test (NAME test_setup COMMAND ${CMAKE_COMMAND} -E echo setup) add_test (NAME test_cleanup COMMAND ${CMAKE_COMMAND} -E echo cleanup) add_test (NAME test_foo COMMAND ${CMAKE_COMMAND} -E echo "needs fixture") set_tests_properties (test_setup PROPERTIES FIXTURES_SETUP test_foo) set_tests_properties (test_cleanup PROPERTIES FIXTURES_CLEANUP test_foo) ``` Executing `$ ctest -R test_foo -V` does not add the setup/cleanup fixtures to the selected test: ``` UpdateCTestConfiguration from :/home/sergiu/Projects/ctest-test/build/DartConfiguration.tcl UpdateCTestConfiguration from :/home/sergiu/Projects/ctest-test/build/DartConfiguration.tcl Test project /home/sergiu/Projects/ctest-test/build Constructing a list of tests Done constructing a list of tests Updating test list for fixtures Added 0 tests to meet fixture requirements Checking test dependency graph... Checking test dependency graph end test 3 Start 3: test_foo 3: Test command: /home/sergiu/Projects/CMake/build/install/bin/cmake "-E" "echo" "needs fixture" 3: Test timeout computed to be: 9.99988e+06 3: needs fixture 1/1 Test #3: test_foo ......................... Passed 0.00 sec The following tests passed: test_foo 100% tests passed, 0 tests failed out of 1 Total Test time (real) = 0.00 sec ```
issue