Skip to content

Commit

Permalink
Merge branch 'rr/test-make-sure-we-have-git' into maint
Browse files Browse the repository at this point in the history
* rr/test-make-sure-we-have-git:
  t/test-lib: make sure Git has already been built
  • Loading branch information
Junio C Hamano committed Oct 17, 2012
2 parents 756583f + 2006f0a commit 5178ee1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
10 changes: 0 additions & 10 deletions t/t0000-basic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
'

################################################################
# 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

################################################################
Expand Down
9 changes: 9 additions & 0 deletions t/test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ then
fi
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
export PERL_PATH SHELL_PATH

Expand Down

0 comments on commit 5178ee1

Please sign in to comment.