summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorMichael J Gruber <git@drmicha.warpmail.net>2012-07-26 15:39:54 +0200
committerJunio C Hamano <gitster@pobox.com>2012-07-27 10:10:58 -0700
commit9a3658b97726df53453bd97add50d267f9ab2978 (patch)
tree1115c19864cb5df9b8fbb09117890c4317906292 /t
parentac39aa612147b595e02876a4c9d6ca7e8063ba3d (diff)
downloadgit-9a3658b97726df53453bd97add50d267f9ab2978.tar.gz
t0050: use the CASE_INSENSITIVE_FS test prereq
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t0050-filesystem.sh21
1 files changed, 8 insertions, 13 deletions
diff --git a/t/t0050-filesystem.sh b/t/t0050-filesystem.sh
index 1542cf6a13..df9498b7d0 100755
--- a/t/t0050-filesystem.sh
+++ b/t/t0050-filesystem.sh
@@ -7,23 +7,12 @@ test_description='Various filesystem issues'
auml=$(printf '\303\244')
aumlcdiar=$(printf '\141\314\210')
-case_insensitive=
unibad=
no_symlinks=
test_expect_success 'see what we expect' '
- test_case=test_expect_success &&
test_unicode=test_expect_success &&
mkdir junk &&
- echo good >junk/CamelCase &&
- echo bad >junk/camelcase &&
- if test "$(cat junk/CamelCase)" != good
- then
- test_case=test_expect_failure &&
- case_insensitive=t
- fi &&
- rm -fr junk &&
- mkdir junk &&
>junk/"$auml" &&
case "$(cd junk && echo *)" in
"$aumlcdiar")
@@ -41,14 +30,20 @@ test_expect_success 'see what we expect' '
}
'
-test "$case_insensitive" &&
+if test_have_prereq CASE_INSENSITIVE_FS
+then
say "will test on a case insensitive filesystem"
+ test_case=test_expect_failure
+else
+ test_case=test_expect_success
+fi
+
test "$unibad" &&
say "will test on a unicode corrupting filesystem"
test "$no_symlinks" &&
say "will test on a filesystem lacking symbolic links"
-if test "$case_insensitive"
+if test_have_prereq CASE_INSENSITIVE_FS
then
test_expect_success "detection of case insensitive filesystem during repo init" '