Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake: use test names instead of full paths
The primary purpose of Git's CMake definition is to allow developing Git in Visual Studio. As part of that, the CTest feature allows running individual test scripts conveniently in Visual Studio's Test Explorer. However, this Test Explorer's design targets object-oriented languages and therefore expects the test names in the form `<namespace>.<class>.<testname>`. And since we specify the full path of the test scripts instead, including the ugly `/.././t/` part, these dots confuse the Test Explorer and it uses a large part of the path as "namespace". Let's just use `t.<name>` instead. This still adds an ugly "Empty Namespace" layer by default, but at least the ugly absolute path is now gone. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
- Loading branch information