From: Junio C Hamano <gitster@pobox.com>
To: Andreas Ericsson <ae@op5.se>
Cc: Nanako Shiraishi <nanako3@lavabit.com>, git@vger.kernel.org
Subject: Re: [PATCH 0/4] tests: use "git xyzzy" form
Date: Wed, 03 Sep 2008 13:01:56 -0700 [thread overview]
Message-ID: <7v8wu9athn.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <48BE6D1F.1060603@op5.se> (Andreas Ericsson's message of "Wed, 03 Sep 2008 12:55:27 +0200")
Andreas Ericsson <ae@op5.se> writes:
> Nanako Shiraishi wrote:
>> These four patches update test scripts to use "git xyzzy" format so that
>> they can serve as sample usage for git commands better.
>>
>> [PATCH 1/4] tests: use "git xyzzy" form (t0000 - t3599)
>> [PATCH 2/4] tests: use "git xyzzy" form (t3600 - t6999)
>> [PATCH 3/4] tests: use "git xyzzy" form (t7000 - t7199)
>> [PATCH 4/4] tests: use "git xyzzy" form (t7200 - t9001)
>
> Are you absolutely 100% certain that what you're testing is still
> the files in the build directory after applying these patches?
Very good point, but that issue has been with us forever before these
patches, because many command invocations do use "git foo" form already.
t/test-lib.sh is supposed to make sure the tests do not refer to installed
git.
My primary development box does not have any git installed on the system
path, and I keep a bunch of installations with prefix=$HOME/git-$variant/
where $variant are master, next, maint, plus things like v1.3.0, v1.4.4.4,
etc.
$PATH begins with "/home/junio/gitstuff/bin:/home/junio/git-active/bin:"
before the usual /usr/bin:/bin and friends. "gitstuff" has things like
stgit, guilt and tig but no git in it. $HOME/git-active is a symbolic
link to point at a specific variant installed, usually 'next' but switched
to 'master' during the -rc cycle.
I created a copy of installation from git-master in git-dontuse, replaced
all git and git subcommands with this shell script, and pointed at it with
$HOME/git-active:
#!/bin/sh
echo "DO NOT USE ME"
echo "DO NOT USE ME" >&2
exit 1
The test passes, with or without these four patches.
next prev parent reply other threads:[~2008-09-03 20:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-03 8:59 [PATCH 0/4] tests: use "git xyzzy" form Nanako Shiraishi
2008-09-03 10:55 ` Andreas Ericsson
2008-09-03 20:01 ` Junio C Hamano [this message]
2008-09-03 20:45 ` Junio C Hamano
2008-09-03 20:59 ` Jeff King
2008-09-03 21:09 ` Jeff King
2008-09-03 21:22 ` Junio C Hamano
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=7v8wu9athn.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=ae@op5.se \
--cc=git@vger.kernel.org \
--cc=nanako3@lavabit.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).