Merge branch 'jm/gitweb-fastcgi-utf8'
[git] / contrib / credential / netrc / t-git-credential-netrc.sh
1 #!/bin/sh
2 (
3         cd ../../../t
4         test_description='git-credential-netrc'
5         . ./test-lib.sh
6
7         if ! test_have_prereq PERL; then
8                 skip_all='skipping perl interface tests, perl not available'
9                 test_done
10         fi
11
12         perl -MTest::More -e 0 2>/dev/null || {
13                 skip_all="Perl Test::More unavailable, skipping test"
14                 test_done
15         }
16
17         # set up test repository
18
19         test_expect_success \
20                 'set up test repository' \
21                 'git config --add gpg.program test.git-config-gpg'
22
23         # The external test will outputs its own plan
24         test_external_has_tap=1
25
26         export PERL5LIB="$GITPERLLIB"
27         test_external \
28                 'git-credential-netrc' \
29                 perl "$GIT_BUILD_DIR"/contrib/credential/netrc/test.pl
30
31         test_done
32 )