diff options
author | Michal Sojka <sojkam1@fel.cvut.cz> | 2010-06-10 08:48:01 +0200 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-09-16 15:56:44 -0700 |
commit | 223987bacef4dcc51952084707d1a664765c7c6e (patch) | |
tree | 61e122f07e19d7549698a4f94e68e19a727580f4 /test/README | |
parent | 0083854b1204f077e98b1d9c4ecfa2a4844ee716 (diff) |
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 <sojkam1@fel.cvut.cz>
Diffstat (limited to 'test/README')
-rw-r--r-- | test/README | 12 |
1 files changed, 7 insertions, 5 deletions
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.<test-basename>' (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 |