Merge branch 'pc/submodule-helper-foreach'
[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         test_external \
27     'git-credential-netrc' \
28     perl "$TEST_DIRECTORY"/../contrib/credential/netrc/test.pl
29
30         test_done
31 )