Skip to content

Commit 5e3b4fc

Browse files
ilya-bobyrgitster
authored andcommitted
test-lib: document short options in t/README
Most arguments that could be provided to a test have short forms. Unless documented, the only way to learn them is to read the code. Signed-off-by: Ilya Bobyr <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 779792a commit 5e3b4fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

t/README

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ You can pass --verbose (or -v), --debug (or -d), and --immediate
7171
(or -i) command line argument to the test, or by setting GIT_TEST_OPTS
7272
appropriately before running "make".
7373

74+
-v::
7475
--verbose::
7576
This makes the test more verbose. Specifically, the
7677
command being run and their output if any are also
@@ -81,6 +82,7 @@ appropriately before running "make".
8182
numbers matching <pattern>. The number matched against is
8283
simply the running count of the test within the file.
8384

85+
-d::
8486
--debug::
8587
This may help the person who is developing a new test.
8688
It causes the command defined with test_debug to run.
@@ -89,13 +91,15 @@ appropriately before running "make".
8991
failed tests so that you can inspect its contents after
9092
the test finished.
9193

94+
-i::
9295
--immediate::
9396
This causes the test to immediately exit upon the first
9497
failed test. Cleanup commands requested with
9598
test_when_finished are not executed if the test failed,
9699
in order to keep the state for inspection by the tester
97100
to diagnose the bug.
98101

102+
-l::
99103
--long-tests::
100104
This causes additional long-running tests to be run (where
101105
available), for more exhaustive testing.

0 commit comments

Comments
 (0)