t: Replace 'perl' by $PERL_PATH
authorVincent van Ravesteijn <vfr@lyx.org>
Mon, 11 Jun 2012 19:01:53 +0000 (19:01 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Jun 2012 16:30:41 +0000 (09:30 -0700)
commita3428205e6d74542d6441baaa29d1cb1d1064d95
tree0ee104bbd1c619f46234d342fb6774f44b2f26c8
parent9bea2b5896701cf952f75c8f6756656cd3c40af0
t: Replace 'perl' by $PERL_PATH

GIT-BUILD-OPTIONS defines PERL_PATH to be used in the test suite. Only a
few tests already actually use this variable when perl is needed. The
other test just call 'perl' and it might happen that the wrong perl
interpreter is used.

This becomes problematic on Windows, when the perl interpreter that is
compiled and installed on the Windows system is used, because this perl
interpreter might introduce some unexpected LF->CRLF conversions.

This patch makes sure that $PERL_PATH is used everywhere in the test suite
and that the correct perl interpreter is used.

Signed-off-by: Vincent van Ravesteijn <vfr@lyx.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
24 files changed:
t/t1010-mktree.sh
t/t3300-funny-names.sh
t/t4014-format-patch.sh
t/t4020-diff-external.sh
t/t4029-diff-trailing-space.sh
t/t4030-diff-textconv.sh
t/t4031-diff-rewrite-binary.sh
t/t4103-apply-binary.sh
t/t4116-apply-reverse.sh
t/t4200-rerere.sh
t/t5300-pack-object.sh
t/t5303-pack-corruption-resilience.sh
t/t5532-fetch-proxy.sh
t/t5551-http-fetch.sh
t/t6011-rev-list-with-bad-commit.sh
t/t6013-rev-list-reverse-parents.sh
t/t7508-status.sh
t/t8006-blame-textconv.sh
t/t9129-git-svn-i18n-commitencoding.sh
t/t9137-git-svn-dcommit-clobber-series.sh
t/t9300-fast-import.sh
t/t9350-fast-export.sh
t/t9810-git-p4-rcs.sh
t/test-lib-functions.sh