diff options
| author | David Bremner <david@tethera.net> | 2021-01-09 07:29:07 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-03-20 07:44:08 -0300 |
| commit | 74c3cc03c219f1046d2672ef686c91b3a7f8b806 (patch) | |
| tree | 5e42efe04476d9f7eb3416486939326bf8b6a2db /test/T055-path-config.sh | |
| parent | c82554193d0a0c288ad49e3d4fb8c949b92f71fa (diff) | |
CLI/insert: support split database and mail root
The new test is in T055-path-config because it uses the helper
function split_config, and because it seems easier to put the
database path related tests in one place.
Diffstat (limited to 'test/T055-path-config.sh')
| -rwxr-xr-x | test/T055-path-config.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/T055-path-config.sh b/test/T055-path-config.sh index f9a8e200..fb5174ac 100755 --- a/test/T055-path-config.sh +++ b/test/T055-path-config.sh @@ -167,6 +167,16 @@ On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote: > basic reply test EOF test_expect_equal_file EXPECTED OUTPUT + test_begin_subtest "insert+search ($config)" + generate_message \ + "[subject]=\"insert-subject\"" \ + "[date]=\"Sat, 01 Jan 2000 12:00:00 -0000\"" \ + "[body]=\"insert-message\"" + mkdir -p "$MAIL_DIR"/{cur,new,tmp} + notmuch insert < "$gen_msg_filename" + cur_msg_filename=$(notmuch search --output=files "subject:insert-subject") + test_expect_equal_file "$cur_msg_filename" "$gen_msg_filename" + restore_config done |
