From: david@tethera.net
To: notmuch@notmuchmail.org
Cc: David Bremner <bremner@debian.org>
Subject: [PATCH 3/3] test: add broken roundtrip test
Date: Sun, 5 Aug 2012 15:13:13 -0300 [thread overview]
Message-ID: <1344190393-22497-4-git-send-email-david@tethera.net> (raw)
In-Reply-To: <1344190393-22497-1-git-send-email-david@tethera.net>
From: David Bremner <bremner@debian.org>
The output of test_cmp is redirected because it is pretty horrible,
and tends to mess up terminals. When the test is no longer marked as
broken, this redirection should be removed.
---
test/dump-restore | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/test/dump-restore b/test/dump-restore
index 439e998..7979ebf 100755
--- a/test/dump-restore
+++ b/test/dump-restore
@@ -82,4 +82,13 @@ test_begin_subtest "dump outfile -- from:cworth"
notmuch dump dump-outfile-dash-inbox.actual -- from:cworth
test_expect_equal_file dump-cworth.expected dump-outfile-dash-inbox.actual
+test_expect_success 'roundtripping random message-ids and tags' \
+ 'test_subtest_known_broken &&
+ ${TEST_DIRECTORY}/random-corpus --config-path=${NOTMUCH_CONFIG} &&
+ notmuch dump > EXPECTED.$test_count &&
+ notmuch tag -random-corpus tag:random-corpus &&
+ notmuch restore < EXPECTED.$test_count 2>/dev/null &&
+ notmuch dump > OUTPUT.$test_count &&
+ test_cmp EXPECTED.$test_count OUTPUT.$test_count 1>/dev/null'
+
test_done
--
1.7.10.4
next prev parent reply other threads:[~2012-08-05 18:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-05 18:13 test infrastructure for new dump/restore david
2012-08-05 18:13 ` [PATCH 1/3] test: add database routines for testing david
2012-08-05 18:13 ` [PATCH 2/3] test: add generator for random "stub" messages david
2012-08-08 7:45 ` Mark Walters
2012-08-05 18:13 ` david [this message]
2012-08-08 8:06 ` [PATCH 3/3] test: add broken roundtrip test Mark Walters
2012-08-08 16:33 ` Jameson Graef Rollins
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=1344190393-22497-4-git-send-email-david@tethera.net \
--to=david@tethera.net \
--cc=bremner@debian.org \
--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).