git-credential-netrc: adapt to test framework for git
authorLuis Marsano <luis.marsano@gmail.com>
Sat, 12 May 2018 09:17:27 +0000 (05:17 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sun, 13 May 2018 23:53:08 +0000 (08:53 +0900)
commitf07eeed123b8880b1723b1ea9d6d6f41cfb34532
tree9623cd398872904ec02c8784e9317fc3bbbb7587
parent468165c1d8a442994a825f3684528361727cd8c0
git-credential-netrc: adapt to test framework for git

git-credential-netrc tests did not run in a test repository.
Reuse the main test framework to stage a temporary repository.
To imitate Perl tests under t/
- switch to Test::More module
- use File::Basename & File::Spec::Functions

Signed-off-by: Luis Marsano <luis.marsano@gmail.com>
Acked-by: Ted Zlatanov <tzz@lifelogs.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/credential/netrc/Makefile
contrib/credential/netrc/t-git-credential-netrc.sh [new file with mode: 0755]
contrib/credential/netrc/test.pl