From 223987bacef4dcc51952084707d1a664765c7c6e Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Thu, 10 Jun 2010 08:48:01 +0200 Subject: Update test framework for use with notmuch This removes Git specific things from the test-lib.sh and adds helper functions for notmuch taken from Carl's notmuch-test script. README is also slightly modified to reflect the current state. Signed-off-by: Michal Sojka --- test/README | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'test/README') diff --git a/test/README b/test/README index dcd3ebb5..af27d603 100644 --- a/test/README +++ b/test/README @@ -165,10 +165,10 @@ Writing Tests ------------- The test script is written as a shell script. It should start -with the standard "#!/bin/sh" with copyright notices, and an +with the standard "#!/bin/bash" with copyright notices, and an assignment to variable 'test_description', like this: - #!/bin/sh + #!/bin/bash # # Copyright (c) 2005 Junio C Hamano # @@ -192,9 +192,11 @@ 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 a test directory with default notmuch-config and empty mail + store. This directory is 't/trash directory.' (note + the space) if you must know, but I do not think you care. The path + to notmuch-config is exported in NOTMUCH_CONFIG environment + variable and mail store path is stored in MAIL_DIR variable. - Defines standard test helper functions for your scripts to use. These functions are designed to make all scripts behave -- cgit v1.2.3