3 # Copyright (c) 2008 Lea Wiemann
6 test_description='perl interface (Git.pm)'
9 if ! test_have_prereq PERL; then
10 say 'skipping perl interface tests, perl not available'
14 perl -MTest::More -e 0 2>/dev/null || {
15 say "Perl Test::More unavailable, skipping test"
19 # set up test repository
22 'set up test repository' \
23 'echo "test file 1" > file1 &&
24 echo "test file 2" > file2 &&
26 echo "in directory1" >> directory1/file &&
28 echo "in directory2" >> directory2/file &&
30 git commit -m "first commit" &&
32 echo "changed file 1" > file1 &&
33 git commit -a -m "second commit" &&
35 git config --add color.test.slot1 green &&
36 git config --add test.string value &&
37 git config --add test.dupstring value1 &&
38 git config --add test.dupstring value2 &&
39 git config --add test.booltrue true &&
40 git config --add test.boolfalse no &&
41 git config --add test.boolother other &&
42 git config --add test.int 2k
45 test_external_without_stderr \
47 perl "$TEST_DIRECTORY"/t9700/test.pl