]>
Commit | Line | Data |
---|---|---|
b4780d72 LW |
1 | #!/bin/sh |
2 | # | |
3 | # Copyright (c) 2008 Lea Wiemann | |
4 | # | |
5 | ||
6 | test_description='perl interface (Git.pm)' | |
7 | . ./test-lib.sh | |
8 | ||
9 | # set up test repository | |
10 | ||
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" && | |
21 | ||
22 | echo "changed file 1" > file1 && | |
23 | git commit -a -m "second commit" && | |
24 | ||
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 | |
33 | ' | |
34 | ||
35 | test_external_without_stderr \ | |
36 | 'Perl API' \ | |
37 | perl ../t9700/test.pl | |
38 | ||
39 | test_done |