Meta/Make: allow --noprove to decline use of prove in tests

todo
Junio C Hamano 2012-04-29 18:32:36 -07:00
parent d1b3a6c23a
commit 007cb03102
1 changed files with 6 additions and 2 deletions

8
Make
View File

@ -56,7 +56,7 @@ do
)
done

Wall='-Wall -Wdeclaration-after-statement' tests= jobs= skip=
Wall='-Wall -Wdeclaration-after-statement' tests= jobs= skip= oldtest=
case `uname` in
OpenBSD)
NEEDS_CRYPTO_WITH_SSL=YesPlease ; export NEEDS_CRYPTO_WITH_SSL
@ -101,6 +101,9 @@ do
'') jobs=$1 ;;
esac
;;
-noprove | --noprove)
oldtest=t
;;
-loose | --loose)
Wall=
;;
@ -135,7 +138,8 @@ if test -z "$tests" && test -n "$skip"
then
: GIT_SKIP_TESTS="${GIT_SKIP_TESTS:-$skip}"
fi
if sh -c 'prove --version >/dev/null 2>&1' &&
if test -z "$oldtest" &&
sh -c 'prove --version >/dev/null 2>&1' &&
sh -c 'prove --exec : >/dev/null 2>&1'
then
DEFAULT_TEST_TARGET=prove GIT_PROVE_OPTS="$jobs"