]> git.ipfire.org Git - thirdparty/git.git/blame - t/t9700-perl-git.sh
Sync with Git 2.45.1
[thirdparty/git.git] / t / t9700-perl-git.sh
CommitLineData
b4780d72
LW
1#!/bin/sh
2#
3# Copyright (c) 2008 Lea Wiemann
4#
5
6test_description='perl interface (Git.pm)'
3e3b9321
ÆAB
7
8TEST_PASSES_SANITIZE_LEAK=true
b4780d72 9. ./test-lib.sh
64f3f5a3 10. "$TEST_DIRECTORY"/lib-perl.sh
b4780d72 11
64f3f5a3 12skip_all_if_no_Test_More
e46f9c81 13
b4780d72
LW
14# set up test repository
15
509d3f51
ZY
16test_expect_success 'set up test repository' '
17 echo "test file 1" >file1 &&
18 echo "test file 2" >file2 &&
19 mkdir directory1 &&
20 echo "in directory1" >>directory1/file &&
21 mkdir directory2 &&
22 echo "in directory2" >>directory2/file &&
23 git add . &&
24 git commit -m "first commit" &&
25
26 echo "new file in subdir 2" >directory2/file2 &&
27 git add . &&
28 git commit -m "commit in directory2" &&
29
30 echo "changed file 1" >file1 &&
31 git commit -a -m "second commit" &&
32
33 git config --add color.test.slot1 green &&
34 git config --add test.string value &&
35 git config --add test.dupstring value1 &&
36 git config --add test.dupstring value2 &&
37 git config --add test.booltrue true &&
38 git config --add test.boolfalse no &&
39 git config --add test.boolother other &&
40 git config --add test.int 2k &&
41 git config --add test.path "~/foo" &&
42 git config --add test.pathexpanded "$HOME/foo" &&
43 git config --add test.pathmulti foo &&
44 git config --add test.pathmulti bar
45'
b4780d72 46
20da61f2
JK
47test_expect_success 'set up bare repository' '
48 git init --bare bare.git
49'
50
5beca49a
ÆAB
51test_expect_success 'use t9700/test.pl to test Git.pm' '
52 "$PERL_PATH" "$TEST_DIRECTORY"/t9700/test.pl 2>stderr &&
53 test_must_be_empty stderr
54'
b4780d72
LW
55
56test_done