summaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorMichael J Gruber <git@drmicha.warpmail.net>2012-07-26 13:39:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-07-27 17:08:33 (GMT)
commitac39aa612147b595e02876a4c9d6ca7e8063ba3d (patch)
treec295a0e3302ce693a28c7cda3a7bf77a485d9f56 /t/test-lib.sh
parent04083f278d19998e0e3f26627791ab54886ac12a (diff)
downloadgit-ac39aa612147b595e02876a4c9d6ca7e8063ba3d.zip
git-ac39aa612147b595e02876a4c9d6ca7e8063ba3d.tar.gz
git-ac39aa612147b595e02876a4c9d6ca7e8063ba3d.tar.bz2
test-lib: provide case insensitivity as a prerequisite
Case insensitivity plays a role in several tests and is tested in several tests. Therefore, move the test from t003 into the test lib and use the prerequisite in t0003. Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/test-lib.sh')
-rw-r--r--t/test-lib.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 35739b9..81cf4df 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -664,6 +664,12 @@ test_lazy_prereq SYMLINKS '
ln -s x y && test -h y
'
+test_lazy_prereq CASE_INSENSITIVE_FS '
+ echo good >CamelCase &&
+ echo bad >camelcase &&
+ test "$(cat CamelCase)" != good
+'
+
# When the tests are run as root, permission tests will report that
# things are writable when they shouldn't be.
test -w / || test_set_prereq SANITY