From: Mark Walters <markwalters1009@gmail.com>
To: notmuch@notmuchmail.org
Subject: [PATCH 0/2] test: tests for notmuch-show.c
Date: Mon, 19 Mar 2012 15:30:59 +0000 [thread overview]
Message-ID: <1332171061-27983-1-git-send-email-markwalters1009@gmail.com> (raw)
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
next reply other threads:[~2012-03-19 15:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-19 15:30 Mark Walters [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1332171061-27983-1-git-send-email-markwalters1009@gmail.com \
--to=markwalters1009@gmail.com \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).