@@ -29,12 +29,10 @@ test_have_prereq SYMLINKS ||
29
29
if test_have_prereq CASE_INSENSITIVE_FS
30
30
then
31
31
test_expect_success " detection of case insensitive filesystem during repo init" '
32
-
33
32
test $(git config --bool core.ignorecase) = true
34
33
'
35
34
else
36
35
test_expect_success " detection of case insensitive filesystem during repo init" '
37
-
38
36
test_must_fail git config --bool core.ignorecase >/dev/null ||
39
37
test $(git config --bool core.ignorecase) = false
40
38
'
43
41
if test_have_prereq SYMLINKS
44
42
then
45
43
test_expect_success " detection of filesystem w/o symlink support during repo init" '
46
-
47
44
test_must_fail git config --bool core.symlinks ||
48
45
test "$(git config --bool core.symlinks)" = true
49
46
'
50
47
else
51
48
test_expect_success " detection of filesystem w/o symlink support during repo init" '
52
-
53
49
v=$(git config --bool core.symlinks) &&
54
50
test "$v" = false
55
51
'
56
52
fi
57
53
58
54
test_expect_success " setup case tests" '
59
-
60
55
git config core.ignorecase true &&
61
56
touch camelcase &&
62
57
git add camelcase &&
@@ -67,67 +62,54 @@ test_expect_success "setup case tests" '
67
62
git mv tmp CamelCase &&
68
63
git commit -m "rename" &&
69
64
git checkout -f master
70
-
71
65
'
72
66
73
67
$test_case ' rename (case change)' '
74
-
75
68
git mv camelcase CamelCase &&
76
69
git commit -m "rename"
77
-
78
70
'
79
71
80
- $test_case ' merge (case change)' '
81
-
72
+ test_expect_success ' merge (case change)' '
82
73
rm -f CamelCase &&
83
74
rm -f camelcase &&
84
75
git reset --hard initial &&
85
76
git merge topic
86
-
87
77
'
88
78
89
79
90
80
91
- test_expect_failure ' add (with different case)' '
92
-
81
+ test_expect_failure CASE_INSENSITIVE_FS ' add (with different case)' '
93
82
git reset --hard initial &&
94
83
rm camelcase &&
95
84
echo 1 >CamelCase &&
96
85
git add CamelCase &&
97
86
camel=$(git ls-files | grep -i camelcase) &&
98
87
test $(echo "$camel" | wc -l) = 1 &&
99
88
test "z$(git cat-file blob :$camel)" = z1
100
-
101
89
'
102
90
103
91
test_expect_success " setup unicode normalization tests" '
104
-
105
- test_create_repo unicode &&
106
- cd unicode &&
107
- touch "$aumlcdiar" &&
108
- git add "$aumlcdiar" &&
109
- git commit -m initial &&
110
- git tag initial &&
111
- git checkout -b topic &&
112
- git mv $aumlcdiar tmp &&
113
- git mv tmp "$auml" &&
114
- git commit -m rename &&
115
- git checkout -f master
116
-
92
+ test_create_repo unicode &&
93
+ cd unicode &&
94
+ touch "$aumlcdiar" &&
95
+ git add "$aumlcdiar" &&
96
+ git commit -m initial &&
97
+ git tag initial &&
98
+ git checkout -b topic &&
99
+ git mv $aumlcdiar tmp &&
100
+ git mv tmp "$auml" &&
101
+ git commit -m rename &&
102
+ git checkout -f master
117
103
'
118
104
119
105
$test_unicode ' rename (silent unicode normalization)' '
120
-
121
- git mv "$aumlcdiar" "$auml" &&
122
- git commit -m rename
123
-
106
+ git mv "$aumlcdiar" "$auml" &&
107
+ git commit -m rename
124
108
'
125
109
126
110
$test_unicode ' merge (silent unicode normalization)' '
127
-
128
- git reset --hard initial &&
129
- git merge topic
130
-
111
+ git reset --hard initial &&
112
+ git merge topic
131
113
'
132
114
133
115
test_done
0 commit comments