Export more test-related variables when running external tests
commit5ae8030fdeb0bb00b94cc830dc98d4fb9d0d532e
authorJakub Narebski <jnareb@gmail.com>
Sat, 24 Apr 2010 13:50:09 +0000 (24 15:50 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 1 May 2010 19:09:35 +0000 (1 12:09 -0700)
treef1db937a0edebf47acf8a241406845099ee98639
parentd599e0484f8ebac8cc50e9557a4c3d246826843d
Export more test-related variables when running external tests

Add exporting TEST_DIRECTORY and TRASH_DIRECTORY to test_external, for
external tests to be able to find test script (and git sources), and
to find trash directory (usually with test repository in it).

Add also exporting GIT_TEST_LONG, so that external test can skip
time-intensive tests unless test is invoked with `--long' option.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Acked-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh