Skip to content

Commit 5e2c08c

Browse files
Lea Wiemanngitster
authored andcommitted
test-lib.sh: add --long-tests option
Add a --long-tests option to test-lib.sh, which enables tests to selectively run more exhaustive (longer running, potentially brute-force) tests. Such exhaustive tests would only be useful if one works on the specific module that is being tested -- for a general "cd t/; make" to check whether everything is OK, such exhaustive tests shouldn't be run by default since the longer it takes to run the tests, the less often they are actually run. Signed-off-by: Lea Wiemann <LeWiemann@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent e449f10 commit 5e2c08c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

t/README

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ You can pass --verbose (or -v), --debug (or -d), and --immediate
5454
This causes the test to immediately exit upon the first
5555
failed test.
5656

57+
--long-tests::
58+
This causes additional long-running tests to be run (where
59+
available), for more exhaustive testing.
60+
5761

5862
Naming Tests
5963
------------

t/test-lib.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ do
8080
debug=t; shift ;;
8181
-i|--i|--im|--imm|--imme|--immed|--immedi|--immedia|--immediat|--immediate)
8282
immediate=t; shift ;;
83+
-l|--l|--lo|--lon|--long|--long-|--long-t|--long-te|--long-tes|--long-test|--long-tests)
84+
export GIT_TEST_LONG=t; shift ;;
8385
-h|--h|--he|--hel|--help)
8486
help=t; shift ;;
8587
-v|--v|--ve|--ver|--verb|--verbo|--verbos|--verbose)

0 commit comments

Comments
 (0)