From 9c7fd320c902bc79cbb3eaa9757cf5b13112ce27 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 20 Sep 2010 16:41:31 -0700 Subject: test/README: Document add_email_corpus (and add_message/generate_message) While adding the documentation here for add_email_corpus I noticed that the other email-adding functions in test-lib.sh were not yet documented here, so add all of that documentation. --- test/README | 49 ++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 38 insertions(+), 11 deletions(-) (limited to 'test/README') diff --git a/test/README b/test/README index 50b3acd2..86afab5c 100644 --- a/test/README +++ b/test/README @@ -94,10 +94,12 @@ 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 a temporary directory with default notmuch-config and empty - mail store. This directory is 'test/tmp.'. The path - to notmuch-config is exported in NOTMUCH_CONFIG environment - variable and mail store path is stored in MAIL_DIR variable. + - Creates a temporary directory with default notmuch-config and a + mail store with a corpus of mail, (initially, 50 early messages + sent to the notmuch list). This directory is + test/tmp.. 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 @@ -115,13 +117,13 @@ Test harness library There are a handful helper functions defined in the test harness library for your script to use. - - test_expect_success