From: Thomas Rast <trast@inf.ethz.ch>
To: "David A. Greene" <greened@obbligato.org>
Cc: Junio C Hamano <gitster@pobox.com>, <git@vger.kernel.org>
Subject: Re: [PATCH] Allow Overriding GIT_BUILD_DIR
Date: Fri, 2 Mar 2012 10:25:37 +0100 [thread overview]
Message-ID: <87hay7e4mm.fsf@thomas.inf.ethz.ch> (raw)
In-Reply-To: <87fwdrk6d4.fsf@smith.obbligato.org> (David A. Greene's message of "Thu, 01 Mar 2012 21:51:35 -0600")
greened@obbligato.org (David A. Greene) writes:
> Junio C Hamano <gitster@pobox.com> writes:
>
>> We use it to find where the test-lib.sh and other lib-*.sh helper
>> definitions are, also we use it to find large-ish test vectors like
>> t3900/ and t4013/. If an external test script t1234-git-subtree.sh
>> wants to use a separate file to keep its own helper definitions, how
>> should it name it? It cannot be relative to TEST_DIRECTORY that is
>> typically "t/". It cannot be relative to "../" as TRASH_DIRECTORY
>> where the script runs, as the --root option may move it elsewhere on
>> the filesystem (and is the reason TEST_DIRECTORY variable exists in
>> the first place).
>
> I must admit I am still confused about what these variables do even
> after reading this explanation several times. I have a pretty good
> idea what TRASH_DIRECTORY is.
>
>> And how well does an external test script work with the --root option that
>> moves the TEST_DIRECTORY?
I think Junio meant TRASH_DIRECTORY here, too.
> I have no idea. I didn't even know about --root and I still don't know
> what it does. It would be helpful to have some commentary about
> options.
--root tells the tests where to put its TRASH_DIRECTORY and is
frequently used to place it on a tmpfs (such as /dev/shm) as that gives
the tests a *huge* speed boost.
That is, if I say
./t5510-fetch.sh --root=/dev/shm
then the "main test repo" aka TRASH_DIRECTORY is
/dev/shm/trash directory.t5510-fetch
--
Thomas Rast
trast@{inf,student}.ethz.ch
prev parent reply other threads:[~2012-03-02 9:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-05 22:28 [PATCH] Allow Overriding GIT_BUILD_DIR David A. Greene
2012-02-26 22:19 ` Junio C Hamano
2012-03-02 3:51 ` David A. Greene
2012-03-02 9:25 ` Thomas Rast [this message]
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=87hay7e4mm.fsf@thomas.inf.ethz.ch \
--to=trast@inf.ethz.ch \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=greened@obbligato.org \
/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).