Add option to ctest to add a prefix/suffix to the test names
When using CDash the ctest_submit() BuildName can be used to identify the build of a test. So it can be clear if a test was running on Valgrind, with a sanitizer, etc. But when not using CDash AFAIK there is no way to differentiate test runs. The Test.xml (and I guess JUnit XML also), which can be parsed also by Jenkins, for example, don't have the information. While things like the GoogleTest module have the TEST_PREFIX/TEST_SUFFIX options, that can only be used if CMake is aware of the different builds. The different builds may have come from CFLAGS passed by the user and the CMake script can't be expected to look at that.
So it would be good if ctest could have "--test-prefix"/"--test-suffix" options so the same user that passed the custom CFLAGS could also pass a custom prefix/suffix to differentiate the test runs.