ctest: Improve tests-from-file handling of edge cases
Update the feature from !9128 (merged):
- If the
--tests-from-file
input file is empty, no tests should run. - Remove unnecessary and ambiguous tests-from-file comment syntax.
See individual commit messages for details.
Fixes: #25741 (closed)
Backport: release