Merge branch 'mm/phrase-remote-tracking'
[git/kirr.git] / t / t4109-apply-multifrag.sh
blobac58083fe224100987800e9b5ee3e388d9b4d97c
1 #!/bin/sh
3 # Copyright (c) 2005 Junio C Hamano
4 # Copyright (c) 2005 Robert Fitzsimons
7 test_description='git apply test patches with multiple fragments.'
9 . ./test-lib.sh
11 cp "$TEST_DIRECTORY/t4109/patch1.patch" .
12 cp "$TEST_DIRECTORY/t4109/patch2.patch" .
13 cp "$TEST_DIRECTORY/t4109/patch3.patch" .
14 cp "$TEST_DIRECTORY/t4109/patch4.patch" .
16 test_expect_success 'git apply (1)' '
17 git apply patch1.patch patch2.patch &&
18 test_cmp "$TEST_DIRECTORY/t4109/expect-1" main.c
20 rm -f main.c
22 test_expect_success 'git apply (2)' '
23 git apply patch1.patch patch2.patch patch3.patch &&
24 test_cmp "$TEST_DIRECTORY/t4109/expect-2" main.c
26 rm -f main.c
28 test_expect_success 'git apply (3)' '
29 git apply patch1.patch patch4.patch &&
30 test_cmp "$TEST_DIRECTORY/t4109/expect-3" main.c
32 mv main.c main.c.git
34 test_done