Browse Source

Merge branch 'rr/test-make-sure-we-have-git' into maint

* rr/test-make-sure-we-have-git:
  t/test-lib: make sure Git has already been built
maint
Junio C Hamano 13 years ago
parent
commit
5178ee1ea2
  1. 10
      t/t0000-basic.sh
  2. 9
      t/test-lib.sh

10
t/t0000-basic.sh

@ -18,16 +18,6 @@ swapping compression and hashing order, the person who is making the
modification *should* take notice and update the test vectors here. modification *should* take notice and update the test vectors here.
' '


################################################################
# It appears that people try to run tests without building...

../git >/dev/null
if test $? != 1
then
echo >&2 'You do not seem to have built git yet.'
exit 1
fi

. ./test-lib.sh . ./test-lib.sh


################################################################ ################################################################

9
t/test-lib.sh

@ -51,6 +51,15 @@ then
fi fi
GIT_BUILD_DIR="$TEST_DIRECTORY"/.. GIT_BUILD_DIR="$TEST_DIRECTORY"/..


################################################################
# It appears that people try to run tests without building...
"$GIT_BUILD_DIR/git" >/dev/null
if test $? != 1
then
echo >&2 'error: you do not seem to have built git yet.'
exit 1
fi

. "$GIT_BUILD_DIR"/GIT-BUILD-OPTIONS . "$GIT_BUILD_DIR"/GIT-BUILD-OPTIONS
export PERL_PATH SHELL_PATH export PERL_PATH SHELL_PATH



Loading…
Cancel
Save