[PATCH 0/2] test: tests for notmuch-show.c

Mark Walters markwalters1009 at gmail.com
Mon Mar 19 08:30:59 PDT 2012


As far as I can see there aren't any tests for notmuch-show.c when
outputting multiple messages and in particular for the --entire-thread
option. This adds test for output=text|json|mbox with and without
--entire-thread for queries involving just a thread-id or a thread-id
together with some additional query. 

The current tests do not test the ouptut of multiple threads from one
query, or anything involving exclude tags.

The output is rather verbose so I have put these in files in a
sub-directory. The first patch adds these test-output-files (and is
obviously generated), the second much smaller patch adds the actual
test.

Best wishes

Mark

Mark Walters (2):
  test: show expected output files
  test: show tests

 test/notmuch-test                                  |    1 +
 test/show                                          |   47 ++
 .../single-thread-and-query-entire-thread-json     |  164 +++++++
 .../single-thread-and-query-entire-thread-mbox     |  459 ++++++++++++++++++++
 .../single-thread-and-query-entire-thread-text     |  278 ++++++++++++
 .../single-thread-and-query-json                   |  164 +++++++
 .../single-thread-and-query-mbox                   |   39 ++
 .../single-thread-and-query-text                   |   42 ++
 test/show.expected-output/single-thread-json       |  164 +++++++
 test/show.expected-output/single-thread-mbox       |  459 ++++++++++++++++++++
 test/show.expected-output/single-thread-text       |  278 ++++++++++++
 11 files changed, 2095 insertions(+), 0 deletions(-)
 create mode 100755 test/show
 create mode 100644 test/show.expected-output/single-thread-and-query-entire-thread-json
 create mode 100644 test/show.expected-output/single-thread-and-query-entire-thread-mbox
 create mode 100644 test/show.expected-output/single-thread-and-query-entire-thread-text
 create mode 100644 test/show.expected-output/single-thread-and-query-json
 create mode 100644 test/show.expected-output/single-thread-and-query-mbox
 create mode 100644 test/show.expected-output/single-thread-and-query-text
 create mode 100644 test/show.expected-output/single-thread-json
 create mode 100644 test/show.expected-output/single-thread-mbox
 create mode 100644 test/show.expected-output/single-thread-text

-- 
1.7.9.1



More information about the notmuch mailing list