@@ -51,7 +51,9 @@ test_expect_success \
51
51
treeM=$(git write-tree) &&
52
52
echo treeM $treeM &&
53
53
git ls-tree $treeM &&
54
- sum bozbar frotz nitfol >M.sum &&
54
+ cp bozbar bozbar.M &&
55
+ cp frotz frotz.M &&
56
+ cp nitfol nitfol.M &&
55
57
git diff-tree $treeH $treeM'
56
58
57
59
test_expect_success \
@@ -61,8 +63,9 @@ test_expect_success \
61
63
read_tree_u_must_succeed -m -u $treeH $treeM &&
62
64
git ls-files --stage >1-3.out &&
63
65
cmp M.out 1-3.out &&
64
- sum bozbar frotz nitfol >actual3.sum &&
65
- cmp M.sum actual3.sum &&
66
+ test_cmp bozbar.M bozbar &&
67
+ test_cmp frotz.M frotz &&
68
+ test_cmp nitfol.M nitfol &&
66
69
check_cache_at bozbar clean &&
67
70
check_cache_at frotz clean &&
68
71
check_cache_at nitfol clean'
@@ -79,8 +82,9 @@ test_expect_success \
79
82
test_might_fail git diff -U0 --no-index M.out 4.out >4diff.out &&
80
83
compare_change 4diff.out expected &&
81
84
check_cache_at yomin clean &&
82
- sum bozbar frotz nitfol >actual4.sum &&
83
- cmp M.sum actual4.sum &&
85
+ test_cmp bozbar.M bozbar &&
86
+ test_cmp frotz.M frotz &&
87
+ test_cmp nitfol.M nitfol &&
84
88
echo yomin >yomin1 &&
85
89
diff yomin yomin1 &&
86
90
rm -f yomin1'
@@ -98,8 +102,9 @@ test_expect_success \
98
102
test_might_fail git diff -U0 --no-index M.out 5.out >5diff.out &&
99
103
compare_change 5diff.out expected &&
100
104
check_cache_at yomin dirty &&
101
- sum bozbar frotz nitfol >actual5.sum &&
102
- cmp M.sum actual5.sum &&
105
+ test_cmp bozbar.M bozbar &&
106
+ test_cmp frotz.M frotz &&
107
+ test_cmp nitfol.M nitfol &&
103
108
: dirty index should have prevented -u from checking it out. &&
104
109
echo yomin yomin >yomin1 &&
105
110
diff yomin yomin1 &&
@@ -115,8 +120,9 @@ test_expect_success \
115
120
git ls-files --stage >6.out &&
116
121
test_cmp M.out 6.out &&
117
122
check_cache_at frotz clean &&
118
- sum bozbar frotz nitfol >actual3.sum &&
119
- cmp M.sum actual3.sum &&
123
+ test_cmp bozbar.M bozbar &&
124
+ test_cmp frotz.M frotz &&
125
+ test_cmp nitfol.M nitfol &&
120
126
echo frotz >frotz1 &&
121
127
diff frotz frotz1 &&
122
128
rm -f frotz1'
@@ -132,8 +138,8 @@ test_expect_success \
132
138
git ls-files --stage >7.out &&
133
139
test_cmp M.out 7.out &&
134
140
check_cache_at frotz dirty &&
135
- sum bozbar frotz nitfol >actual7.sum &&
136
- if cmp M.sum actual7.sum; then false; else :; fi &&
141
+ test_cmp bozbar.M bozbar &&
142
+ test_cmp nitfol.M nitfol &&
137
143
: dirty index should have prevented -u from checking it out. &&
138
144
echo frotz frotz >frotz1 &&
139
145
diff frotz frotz1 &&
@@ -165,8 +171,10 @@ test_expect_success \
165
171
read_tree_u_must_succeed -m -u $treeH $treeM &&
166
172
git ls-files --stage >10.out &&
167
173
cmp M.out 10.out &&
168
- sum bozbar frotz nitfol >actual10.sum &&
169
- cmp M.sum actual10.sum'
174
+ test_cmp bozbar.M bozbar &&
175
+ test_cmp frotz.M frotz &&
176
+ test_cmp nitfol.M nitfol
177
+ '
170
178
171
179
test_expect_success \
172
180
' 11 - dirty path removed.' \
@@ -209,11 +217,8 @@ test_expect_success \
209
217
git ls-files --stage >14.out &&
210
218
test_must_fail git diff -U0 --no-index M.out 14.out >14diff.out &&
211
219
compare_change 14diff.out expected &&
212
- sum bozbar frotz >actual14.sum &&
213
- grep -v nitfol M.sum > expected14.sum &&
214
- cmp expected14.sum actual14.sum &&
215
- sum bozbar frotz nitfol >actual14a.sum &&
216
- if cmp M.sum actual14a.sum; then false; else :; fi &&
220
+ test_cmp bozbar.M bozbar &&
221
+ test_cmp frotz.M frotz &&
217
222
check_cache_at nitfol clean &&
218
223
echo nitfol nitfol >nitfol1 &&
219
224
diff nitfol nitfol1 &&
@@ -231,11 +236,8 @@ test_expect_success \
231
236
test_must_fail git diff -U0 --no-index M.out 15.out >15diff.out &&
232
237
compare_change 15diff.out expected &&
233
238
check_cache_at nitfol dirty &&
234
- sum bozbar frotz >actual15.sum &&
235
- grep -v nitfol M.sum > expected15.sum &&
236
- cmp expected15.sum actual15.sum &&
237
- sum bozbar frotz nitfol >actual15a.sum &&
238
- if cmp M.sum actual15a.sum; then false; else :; fi &&
239
+ test_cmp bozbar.M bozbar &&
240
+ test_cmp frotz.M frotz &&
239
241
echo nitfol nitfol nitfol >nitfol1 &&
240
242
diff nitfol nitfol1 &&
241
243
rm -f nitfol1'
@@ -267,8 +269,10 @@ test_expect_success \
267
269
git ls-files --stage >18.out &&
268
270
test_cmp M.out 18.out &&
269
271
check_cache_at bozbar clean &&
270
- sum bozbar frotz nitfol >actual18.sum &&
271
- cmp M.sum actual18.sum'
272
+ test_cmp bozbar.M bozbar &&
273
+ test_cmp frotz.M frotz &&
274
+ test_cmp nitfol.M nitfol
275
+ '
272
276
273
277
test_expect_success \
274
278
' 19 - local change already having a good result, further modified.' \
@@ -281,11 +285,8 @@ test_expect_success \
281
285
git ls-files --stage >19.out &&
282
286
test_cmp M.out 19.out &&
283
287
check_cache_at bozbar dirty &&
284
- sum frotz nitfol >actual19.sum &&
285
- grep -v bozbar M.sum > expected19.sum &&
286
- cmp expected19.sum actual19.sum &&
287
- sum bozbar frotz nitfol >actual19a.sum &&
288
- if cmp M.sum actual19a.sum; then false; else :; fi &&
288
+ test_cmp frotz.M frotz &&
289
+ test_cmp nitfol.M nitfol &&
289
290
echo gnusto gnusto >bozbar1 &&
290
291
diff bozbar bozbar1 &&
291
292
rm -f bozbar1'
@@ -300,8 +301,10 @@ test_expect_success \
300
301
git ls-files --stage >20.out &&
301
302
test_cmp M.out 20.out &&
302
303
check_cache_at bozbar clean &&
303
- sum bozbar frotz nitfol >actual20.sum &&
304
- cmp M.sum actual20.sum'
304
+ test_cmp bozbar.M bozbar &&
305
+ test_cmp frotz.M frotz &&
306
+ test_cmp nitfol.M nitfol
307
+ '
305
308
306
309
test_expect_success \
307
310
' 21 - no local change, dirty cache.' \
0 commit comments