64f3f5a3f6
Since the original "perl -MTest::More" prerequisite check was added in [1] it's been copy/pasted in [2], [3] and [4]. As we'll be changing these codepaths in a subsequent commit let's consolidate these. While we're at it let's move these to a lazy prereq, and make them conform to our usual coding style (e.g. "\nthen", not "; then"). 1.e46f9c8161
(t9700: skip when Test::More is not available, 2008-06-29) 2.5e9637c629
(i18n: add infrastructure for translating Git with gettext, 2011-11-18) 3.8d314d7afe
(send-email: reduce dependencies impact on parse_address_line, 2015-07-07) 4.f07eeed123
(git-credential-netrc: adapt to test framework for git, 2018-05-12) Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
26 lines
498 B
Bash
Executable File
26 lines
498 B
Bash
Executable File
#!/bin/sh
|
|
(
|
|
cd ../../../t
|
|
test_description='git-credential-netrc'
|
|
. ./test-lib.sh
|
|
. "$TEST_DIRECTORY"/lib-perl.sh
|
|
|
|
skip_all_if_no_Test_More
|
|
|
|
# set up test repository
|
|
|
|
test_expect_success \
|
|
'set up test repository' \
|
|
'git config --add gpg.program test.git-config-gpg'
|
|
|
|
# The external test will outputs its own plan
|
|
test_external_has_tap=1
|
|
|
|
export PERL5LIB="$GITPERLLIB"
|
|
test_external \
|
|
'git-credential-netrc' \
|
|
perl "$GIT_BUILD_DIR"/contrib/credential/netrc/test.pl
|
|
|
|
test_done
|
|
)
|