210
211
END_OF_CASE_TABLE
212
213
-test_expect_failure \
214
- '1 - must not have an entry not in A.' \
215
- "rm -f .git/index XX &&
213
+test_expect_success '1 - must not have an entry not in A.' "
214
+ rm -f .git/index XX &&
215
echo XX >XX &&
216
git update-index --add XX &&
218
- git read-tree -m $tree_O $tree_A $tree_B"
217
+ ! git read-tree -m $tree_O $tree_A $tree_B
218
+"
219
220
test_expect_success \
221
'2 - must match B in !O && !A && B case.' \
248
echo extra >>AN &&
249
git read-tree -m $tree_O $tree_A $tree_B"
250
251
-test_expect_failure \
252
- '3 (fail) - must match A in !O && A && !B case.' \
253
- "rm -f .git/index AN &&
251
+test_expect_success \
252
+ '3 (fail) - must match A in !O && A && !B case.' "
253
+ rm -f .git/index AN &&
254
cp .orig-A/AN AN &&
255
echo extra >>AN &&
256
git update-index --add AN &&
257
- git read-tree -m $tree_O $tree_A $tree_B"
257
+ ! git read-tree -m $tree_O $tree_A $tree_B
258
+"
259
260
test_expect_success \
261
'4 - must match and be up-to-date in !O && A && B && A!=B case.' \
265
git read-tree -m $tree_O $tree_A $tree_B &&
266
check_result"
267
267
-test_expect_failure \
268
- '4 (fail) - must match and be up-to-date in !O && A && B && A!=B case.' \
269
- "rm -f .git/index AA &&
268
+test_expect_success \
269
+ '4 (fail) - must match and be up-to-date in !O && A && B && A!=B case.' "
270
+ rm -f .git/index AA &&
271
cp .orig-A/AA AA &&
272
git update-index --add AA &&
273
echo extra >>AA &&
273
- git read-tree -m $tree_O $tree_A $tree_B"
274
+ ! git read-tree -m $tree_O $tree_A $tree_B
275
+"
276
275
-test_expect_failure \
276
- '4 (fail) - must match and be up-to-date in !O && A && B && A!=B case.' \
277
- "rm -f .git/index AA &&
277
+test_expect_success \
278
+ '4 (fail) - must match and be up-to-date in !O && A && B && A!=B case.' "
279
+ rm -f .git/index AA &&
280
cp .orig-A/AA AA &&
281
echo extra >>AA &&
282
git update-index --add AA &&
281
- git read-tree -m $tree_O $tree_A $tree_B"
283
+ ! git read-tree -m $tree_O $tree_A $tree_B
284
+"
285
286
test_expect_success \
287
'5 - must match in !O && A && B && A==B case.' \
300
git read-tree -m $tree_O $tree_A $tree_B &&
301
check_result"
302
300
-test_expect_failure \
301
- '5 (fail) - must match A in !O && A && B && A==B case.' \
302
- "rm -f .git/index LL &&
303
+test_expect_success \
304
+ '5 (fail) - must match A in !O && A && B && A==B case.' "
305
+ rm -f .git/index LL &&
306
cp .orig-A/LL LL &&
307
echo extra >>LL &&
308
git update-index --add LL &&
306
- git read-tree -m $tree_O $tree_A $tree_B"
309
+ ! git read-tree -m $tree_O $tree_A $tree_B
310
+"
311
308
-test_expect_failure \
309
- '6 - must not exist in O && !A && !B case' \
310
- "rm -f .git/index DD &&
312
+test_expect_success \
313
+ '6 - must not exist in O && !A && !B case' "
314
+ rm -f .git/index DD &&
315
echo DD >DD
316
git update-index --add DD &&
313
- git read-tree -m $tree_O $tree_A $tree_B"
317
+ ! git read-tree -m $tree_O $tree_A $tree_B
318
+"
319
315
-test_expect_failure \
316
- '7 - must not exist in O && !A && B && O!=B case' \
317
- "rm -f .git/index DM &&
320
+test_expect_success \
321
+ '7 - must not exist in O && !A && B && O!=B case' "
322
+ rm -f .git/index DM &&
323
cp .orig-B/DM DM &&
324
git update-index --add DM &&
320
- git read-tree -m $tree_O $tree_A $tree_B"
325
+ ! git read-tree -m $tree_O $tree_A $tree_B
326
+"
327
322
-test_expect_failure \
323
- '8 - must not exist in O && !A && B && O==B case' \
324
- "rm -f .git/index DN &&
328
+test_expect_success \
329
+ '8 - must not exist in O && !A && B && O==B case' "
330
+ rm -f .git/index DN &&
331
cp .orig-B/DN DN &&
332
git update-index --add DN &&
327
- git read-tree -m $tree_O $tree_A $tree_B"
333
+ ! git read-tree -m $tree_O $tree_A $tree_B
334
+"
335
336
test_expect_success \
337
'9 - must match and be up-to-date in O && A && !B && O!=A case' \
341
git read-tree -m $tree_O $tree_A $tree_B &&
342
check_result"
343
337
-test_expect_failure \
338
- '9 (fail) - must match and be up-to-date in O && A && !B && O!=A case' \
339
- "rm -f .git/index MD &&
344
+test_expect_success \
345
+ '9 (fail) - must match and be up-to-date in O && A && !B && O!=A case' "
346
+ rm -f .git/index MD &&
347
cp .orig-A/MD MD &&
348
git update-index --add MD &&
349
echo extra >>MD &&
343
- git read-tree -m $tree_O $tree_A $tree_B"
350
+ ! git read-tree -m $tree_O $tree_A $tree_B
351
+"
352
345
-test_expect_failure \
346
- '9 (fail) - must match and be up-to-date in O && A && !B && O!=A case' \
347
- "rm -f .git/index MD &&
353
+test_expect_success \
354
+ '9 (fail) - must match and be up-to-date in O && A && !B && O!=A case' "
355
+ rm -f .git/index MD &&
356
cp .orig-A/MD MD &&
357
echo extra >>MD &&
358
git update-index --add MD &&
351
- git read-tree -m $tree_O $tree_A $tree_B"
359
+ ! git read-tree -m $tree_O $tree_A $tree_B
360
+"
361
362
test_expect_success \
363
'10 - must match and be up-to-date in O && A && !B && O==A case' \
367
git read-tree -m $tree_O $tree_A $tree_B &&
368
check_result"
369
361
-test_expect_failure \
362
- '10 (fail) - must match and be up-to-date in O && A && !B && O==A case' \
363
- "rm -f .git/index ND &&
370
+test_expect_success \
371
+ '10 (fail) - must match and be up-to-date in O && A && !B && O==A case' "
372
+ rm -f .git/index ND &&
373
cp .orig-A/ND ND &&
374
git update-index --add ND &&
375
echo extra >>ND &&
367
- git read-tree -m $tree_O $tree_A $tree_B"
376
+ ! git read-tree -m $tree_O $tree_A $tree_B
377
+"
378
369
-test_expect_failure \
370
- '10 (fail) - must match and be up-to-date in O && A && !B && O==A case' \
371
- "rm -f .git/index ND &&
379
+test_expect_success \
380
+ '10 (fail) - must match and be up-to-date in O && A && !B && O==A case' "
381
+ rm -f .git/index ND &&
382
cp .orig-A/ND ND &&
383
echo extra >>ND &&
384
git update-index --add ND &&
375
- git read-tree -m $tree_O $tree_A $tree_B"
385
+ ! git read-tree -m $tree_O $tree_A $tree_B
386
+"
387
388
test_expect_success \
389
'11 - must match and be up-to-date in O && A && B && O!=A && O!=B && A!=B case' \
393
git read-tree -m $tree_O $tree_A $tree_B &&
394
check_result"
395
385
-test_expect_failure \
386
- '11 (fail) - must match and be up-to-date in O && A && B && O!=A && O!=B && A!=B case' \
387
- "rm -f .git/index MM &&
396
+test_expect_success \
397
+ '11 (fail) - must match and be up-to-date in O && A && B && O!=A && O!=B && A!=B case' "
398
+ rm -f .git/index MM &&
399
cp .orig-A/MM MM &&
400
git update-index --add MM &&
401
echo extra >>MM &&
391
- git read-tree -m $tree_O $tree_A $tree_B"
402
+ ! git read-tree -m $tree_O $tree_A $tree_B
403
+"
404
393
-test_expect_failure \
394
- '11 (fail) - must match and be up-to-date in O && A && B && O!=A && O!=B && A!=B case' \
395
- "rm -f .git/index MM &&
405
+test_expect_success \
406
+ '11 (fail) - must match and be up-to-date in O && A && B && O!=A && O!=B && A!=B case' "
407
+ rm -f .git/index MM &&
408
cp .orig-A/MM MM &&
409
echo extra >>MM &&
410
git update-index --add MM &&
399
- git read-tree -m $tree_O $tree_A $tree_B"
411
+ ! git read-tree -m $tree_O $tree_A $tree_B
412
+"
413
414
test_expect_success \
415
'12 - must match A in O && A && B && O!=A && A==B case' \
428
git read-tree -m $tree_O $tree_A $tree_B &&
429
check_result"
430
418
-test_expect_failure \
419
- '12 (fail) - must match A in O && A && B && O!=A && A==B case' \
420
- "rm -f .git/index SS &&
431
+test_expect_success \
432
+ '12 (fail) - must match A in O && A && B && O!=A && A==B case' "
433
+ rm -f .git/index SS &&
434
cp .orig-A/SS SS &&
435
echo extra >>SS &&
436
git update-index --add SS &&
424
- git read-tree -m $tree_O $tree_A $tree_B"
437
+ ! git read-tree -m $tree_O $tree_A $tree_B
438
+"
439
440
test_expect_success \
441
'13 - must match A in O && A && B && O!=A && O==B case' \
471
git read-tree -m $tree_O $tree_A $tree_B &&
472
check_result"
473
460
-test_expect_failure \
461
- '14 (fail) - must match and be up-to-date in O && A && B && O==A && O!=B case' \
462
- "rm -f .git/index NM &&
474
+test_expect_success \
475
+ '14 (fail) - must match and be up-to-date in O && A && B && O==A && O!=B case' "
476
+ rm -f .git/index NM &&
477
cp .orig-A/NM NM &&
478
git update-index --add NM &&
479
echo extra >>NM &&
466
- git read-tree -m $tree_O $tree_A $tree_B"
480
+ ! git read-tree -m $tree_O $tree_A $tree_B
481
+"
482
468
-test_expect_failure \
469
- '14 (fail) - must match and be up-to-date in O && A && B && O==A && O!=B case' \
470
- "rm -f .git/index NM &&
483
+test_expect_success \
484
+ '14 (fail) - must match and be up-to-date in O && A && B && O==A && O!=B case' "
485
+ rm -f .git/index NM &&
486
cp .orig-A/NM NM &&
487
echo extra >>NM &&
488
git update-index --add NM &&
474
- git read-tree -m $tree_O $tree_A $tree_B"
489
+ ! git read-tree -m $tree_O $tree_A $tree_B
490
+"
491
492
test_expect_success \
493
'15 - must match A in O && A && B && O==A && O==B case' \
506
git read-tree -m $tree_O $tree_A $tree_B &&
507
check_result"
508
493
-test_expect_failure \
494
- '15 (fail) - must match A in O && A && B && O==A && O==B case' \
495
- "rm -f .git/index NN &&
509
+test_expect_success \
510
+ '15 (fail) - must match A in O && A && B && O==A && O==B case' "
511
+ rm -f .git/index NN &&
512
cp .orig-A/NN NN &&
513
echo extra >>NN &&
514
git update-index --add NN &&
499
- git read-tree -m $tree_O $tree_A $tree_B"
515
+ ! git read-tree -m $tree_O $tree_A $tree_B
516
+"
517
518
# #16
519
test_expect_success \