git/contrib/buildsystems
Johannes Schindelin 2f2729f3a4 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.suite.<name>` instead. This presents the tests in
Visual Studio's Test Explorer in the following form by default (i.e.
unless the user changes the view via the "Group by" menu):

	◢ ◈ git
	 ◢ ◈ t
	  ◢ ◈ suite
	     ◈ t0000-basic
	     ◈ t0001-init
	     ◈ t0002-gitfile
	     [...]

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2023-11-10 08:16:27 +09:00
..
Generators reftable: utility functions 2021-10-08 10:45:48 -07:00
CMakeLists.txt cmake: use test names instead of full paths 2023-11-10 08:16:27 +09:00
engine.pl ci(vs-build): stop passing the iconv library location explicitly 2020-12-04 12:03:15 -08:00
generate mark Windows build scripts executable 2013-11-25 15:01:22 -08:00
Generators.pm contrib/buildsystems: ignore irrelevant files in Generators/ 2019-07-29 14:51:42 -07:00
parse.pl mark Windows build scripts executable 2013-11-25 15:01:22 -08:00