]> git.notmuchmail.org Git - notmuch/blobdiff - test/T240-dump-restore.sh
dump: support gzipped and atomic output
[notmuch] / test / T240-dump-restore.sh
index 0004438db493514fed25c95fe244c0eab1767a06..d79aca86df3297b70763fe7613e47bdf96dcce44 100755 (executable)
@@ -68,6 +68,18 @@ test_begin_subtest "dump --output=outfile --"
 notmuch dump --output=dump-1-arg-dash.actual --
 test_expect_equal_file dump.expected dump-1-arg-dash.actual
 
+# gzipped output
+
+test_begin_subtest "dump --gzip"
+notmuch dump --gzip > dump-gzip.gz
+gunzip dump-gzip.gz
+test_expect_equal_file dump.expected dump-gzip
+
+test_begin_subtest "dump --gzip --output=outfile"
+notmuch dump --gzip --output=dump-gzip-outfile.gz
+gunzip dump-gzip-outfile.gz
+test_expect_equal_file dump.expected dump-gzip-outfile
+
 # Note, we assume all messages from cworth have a message-id
 # containing cworth.org