From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: "Nguyễn Thái Ngọc Duy" <pclouds@gmail.com>
Cc: git@vger.kernel.org, Junio C Hamano <gitster@pobox.com>
Subject: Re: [PATCH] Add option --path to allow to run tests with real systems. You must install git before running this test.
Date: Thu, 6 Dec 2007 15:23:31 +0000 (GMT) [thread overview]
Message-ID: <Pine.LNX.4.64.0712061422010.27959@racer.site> (raw)
In-Reply-To: <20071206134817.GA8523@laptop>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1669 bytes --]
Hi,
On Thu, 6 Dec 2007, Nguyễn Thái Ngọc Duy wrote:
> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
> ---
> On Thu, Dec 06, 2007 at 10:15:05AM +0700, Nguyen Thai Ngoc Duy wrote:
> > On Dec 6, 2007 2:32 AM, Junio C Hamano <gitster@pobox.com> wrote:
> > > This is wrong, isn't it? $path may point at the freshly built but not
> > > installed git executable, but it reports --exec-path the location that
> > > git-foo and friends are to be _eventually_ installed, not the location
> > > they are sitting after built, being tested, waiting to be installed.
> > >
> > Yes, forgot to mention you must do "make install" first :)
> >
>
> Perhaps a check to remind people to 'make install' like this?
Well, the whole point of "make test" is to be sure that it works before
installing it.
How about something completely different?
-- snipsnap --
t/test-lib.sh | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 90b6844..ee87b83 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -296,7 +296,18 @@ test_done () {
# Test the binaries we have just built. The tests are kept in
# t/ subdirectory and are run in trash subdirectory.
-PATH=$(pwd)/..:$PATH
+
+# Test libexec, while we are at it
+
+test -d test-bin || mkdir test-bin || error "t/test-bin/ could not be created"
+for file in ../git ../git-sh-setup ../test-*
+do
+ target=test-bin/"$(basename "$filename")"
+ test -x "$file" && test ! -x "$target" &&
+ ln -s ../"$file" test-bin/
+done
+
+PATH=$(pwd)/test-bin:$PATH
GIT_EXEC_PATH=$(pwd)/..
GIT_TEMPLATE_DIR=$(pwd)/../templates/blt
GIT_CONFIG=.git/config
next prev parent reply other threads:[~2007-12-06 15:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-05 13:45 [PATCH] Add option --path to allow to run tests with real systems Nguyễn Thái Ngọc Duy
2007-12-05 19:32 ` Junio C Hamano
2007-12-06 13:48 ` [PATCH] Add option --path to allow to run tests with real systems. You must install git before running this test Nguyễn Thái Ngọc Duy
2007-12-06 15:23 ` Johannes Schindelin [this message]
[not found] ` <fcaeb9bf0712060732r70d07135lf6a01ae2410a0ada@mail.gmail.com>
2007-12-06 15:50 ` Johannes Schindelin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.0712061422010.27959@racer.site \
--to=johannes.schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=pclouds@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).