unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH 0/2] test: tests for notmuch-show.c
@ 2012-03-19 15:30 Mark Walters
  2012-03-19 15:31 ` [PATCH 1/2] test: show expected output files Mark Walters
  2012-03-19 15:31 ` [PATCH 2/2] test: show tests Mark Walters
  0 siblings, 2 replies; 4+ messages in thread
From: Mark Walters @ 2012-03-19 15:30 UTC (permalink / raw)
  To: notmuch

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-08-31 21:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-19 15:30 [PATCH 0/2] test: tests for notmuch-show.c Mark Walters
2012-03-19 15:31 ` [PATCH 1/2] test: show expected output files Mark Walters
2012-03-19 15:31 ` [PATCH 2/2] test: show tests Mark Walters
2012-08-31 21:00   ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).