[PATCH 3/3] test: add broken roundtrip test
david at tethera.net
david at tethera.net
Sun Aug 5 11:13:13 PDT 2012
From: David Bremner <bremner at 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
More information about the notmuch
mailing list