aboutsummaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorLea Wiemann <lewiemann@gmail.com>2008-06-17 03:29:02 +0200
committerJunio C Hamano <gitster@pobox.com>2008-06-19 14:21:42 -0700
commit5e2c08c6f0209e94b36d0770abae1a2b571cb0f1 (patch)
tree1213ffc75f6238c7af76e39944de241a1beb66c8 /t/test-lib.sh
parente449f105805ffa49ccf7cf080db897ecf65a1a0f (diff)
downloadgit-5e2c08c6f0209e94b36d0770abae1a2b571cb0f1.tar.gz
git-5e2c08c6f0209e94b36d0770abae1a2b571cb0f1.tar.xz
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>
Diffstat (limited to 't/test-lib.sh')
-rw-r--r--t/test-lib.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index c86114166..e331cadcf 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -80,6 +80,8 @@ do
debug=t; shift ;;
-i|--i|--im|--imm|--imme|--immed|--immedi|--immedia|--immediat|--immediate)
immediate=t; shift ;;
+ -l|--l|--lo|--lon|--long|--long-|--long-t|--long-te|--long-tes|--long-test|--long-tests)
+ export GIT_TEST_LONG=t; shift ;;
-h|--h|--he|--hel|--help)
help=t; shift ;;
-v|--v|--ve|--ver|--verb|--verbo|--verbos|--verbose)