aboutsummaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2013-11-25 13:02:16 -0800
committerJunio C Hamano <gitster@pobox.com>2013-11-26 14:21:26 -0800
commitb018c73526ca9d941c64d6a41d9c24968de38c2b (patch)
treeec19821f24d1c599507a814c82b047789d0c4eb5 /t/test-lib.sh
parent30a3318ac06c639f0ccb25b3abf627b3120c4dc9 (diff)
downloadgit-b018c73526ca9d941c64d6a41d9c24968de38c2b.tar.gz
git-b018c73526ca9d941c64d6a41d9c24968de38c2b.tar.xz
test: make FILEMODE a lazy prereq
This way, test authors don't need to remember to source lib-prereq-FILEMODE.sh before using the FILEMODE prereq to guard tests that rely on the executable bit being honored when checking out files. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/test-lib.sh')
-rw-r--r--t/test-lib.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index b25249ec4..596815704 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -830,6 +830,10 @@ test_lazy_prereq SYMLINKS '
ln -s x y && test -h y
'
+test_lazy_prereq FILEMODE '
+ test "$(git config --bool core.filemode)" = true
+'
+
test_lazy_prereq CASE_INSENSITIVE_FS '
echo good >CamelCase &&
echo bad >camelcase &&