t/README: mention test files are make targets

Since 23fc63bf8f (make tests ignorable with "make -i", 2005-11-08), each test file defines a target in the test Makefile, such that one can invoke: make *checkout* to run all tests with 'checkout' in their filename. This is useful to run a subset of tests when you have a good idea of what part of the code is touched by the changes your are testing. Document that in t/README to help new (or more seasoned) contributors that might not be aware. Signed-off-by: Philippe Blain <levraiphilippeblain@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Philippe Blain committed Mar 24, 2024 at 15:14 UTC 8d383806fc98771b42bc0407eedb235e5a6d5d08
1 file changed +7
t/README
+7
@@ -32,6 +32,13 @@ the tests.
32 ok 2 - plain with GIT_WORK_TREE
33 ok 3 - plain bare
34
35 +t/Makefile defines a target for each test file, such that you can also use
36 +shell pattern matching to run a subset of the tests:
37 +
38 + make *checkout*
39 +
40 +will run all tests with 'checkout' in their filename.
41 +
42 Since the tests all output TAP (see https://testanything.org) they can
43 be run with any TAP harness. Here's an example of parallel testing
44 powered by a recent version of prove(1):