Allow git-apply to recount the lines in a hunk (AKA recountdiff)
[git/dscho.git] / t / t9700-perl-git.sh
blobb2fb9ece9c9745fc7ce3240c88ca206b2dac7359
1 #!/bin/sh
3 # Copyright (c) 2008 Lea Wiemann
6 test_description='perl interface (Git.pm)'
7 . ./test-lib.sh
9 # set up test repository
11 test_expect_success \
12 'set up test repository' \
13 'echo "test file 1" > file1 &&
14 echo "test file 2" > file2 &&
15 mkdir directory1 &&
16 echo "in directory1" >> directory1/file &&
17 mkdir directory2 &&
18 echo "in directory2" >> directory2/file &&
19 git add . &&
20 git commit -m "first commit" &&
22 echo "changed file 1" > file1 &&
23 git commit -a -m "second commit" &&
25 git-config --add color.test.slot1 green &&
26 git-config --add test.string value &&
27 git-config --add test.dupstring value1 &&
28 git-config --add test.dupstring value2 &&
29 git-config --add test.booltrue true &&
30 git-config --add test.boolfalse no &&
31 git-config --add test.boolother other &&
32 git-config --add test.int 2k
35 test_external_without_stderr \
36 'Perl API' \
37 perl ../t9700/test.pl
39 test_done