git-credential-netrc: use in-tree Git.pm for tests
[git.git] / contrib / credential / netrc / t-git-credential-netrc.sh
blob07227d02287618394d649ae915a1b42d93140950
1 #!/bin/sh
3 cd ../../../t
4 test_description='git-credential-netrc'
5 . ./test-lib.sh
7 if ! test_have_prereq PERL; then
8 skip_all='skipping perl interface tests, perl not available'
9 test_done
12 perl -MTest::More -e 0 2>/dev/null || {
13 skip_all="Perl Test::More unavailable, skipping test"
14 test_done
17 # set up test repository
19 test_expect_success \
20 'set up test repository' \
21 'git config --add gpg.program test.git-config-gpg'
23 # The external test will outputs its own plan
24 test_external_has_tap=1
26 export PERL5LIB="$GITPERLLIB"
27 test_external \
28 'git-credential-netrc' \
29 perl "$GIT_BUILD_DIR"/contrib/credential/netrc/test.pl
31 test_done