From e1ca1c9d9be497aef8c195de9b3a5715fef54898 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Fri, 2 Jul 2010 14:59:43 +0000 Subject: [PATCH 1/8] t/README: The trash is in 't/trash directory.$name' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There's a unique trash directory for each test, not a single directory as the previous documentation suggested. Signed-off-by: Ævar Arnfjörð Bjarmason Signed-off-by: Junio C Hamano --- t/README | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/t/README b/t/README index aa4ed280b3..cad6fde8e2 100644 --- a/t/README +++ b/t/README @@ -221,9 +221,10 @@ This test harness library does the following things: - If the script is invoked with command line argument --help (or -h), it shows the test_description and exits. - - Creates an empty test directory with an empty .git/objects - database and chdir(2) into it. This directory is 't/trash directory' - if you must know, but I do not think you care. + - Creates an empty test directory with an empty .git/objects database + and chdir(2) into it. This directory is 't/trash + directory.$test_name_without_dotsh', with t/ subject to change by + the --root option documented above. - Defines standard test helper functions for your scripts to use. These functions are designed to make all scripts behave From 85b0b34ea42628874198772fe6602365650ead88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Fri, 2 Jul 2010 14:59:44 +0000 Subject: [PATCH 2/8] t/README: Typo: paralell -> parallel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ævar Arnfjörð Bjarmason Signed-off-by: Junio C Hamano --- t/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/README b/t/README index cad6fde8e2..a7312fa98c 100644 --- a/t/README +++ b/t/README @@ -33,7 +33,7 @@ the tests. ok 3 - plain bare Since the tests all output TAP (see http://testanything.org) they can -be run with any TAP harness. Here's an example of paralell testing +be run with any TAP harness. Here's an example of parallel testing powered by a recent version of prove(1): $ prove --timer --jobs 15 ./t[0-9]*.sh From 9a897893a76063a1fbe07f62ba78ab8f5308dbd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Fri, 2 Jul 2010 14:59:45 +0000 Subject: [PATCH 3/8] t/README: Document the prereq functions, and 3-arg test_* MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There was no documentation for the test_set_prereq and test_have_prereq functions, or the three-arg form of test_expect_success and test_expect_failure. Signed-off-by: Ævar Arnfjörð Bjarmason Signed-off-by: Junio C Hamano --- t/README | 37 ++++++++++++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/t/README b/t/README index a7312fa98c..c1fd0924b6 100644 --- a/t/README +++ b/t/README @@ -246,9 +246,9 @@ Test harness library There are a handful helper functions defined in the test harness library for your script to use. - - test_expect_success