$OpenBSD$

openbsd's zlib does not have gzopen() "transparency" mode, so notmuch dump
is always gzipped. Add | zcat in tests

Index: test/T150-tagging.sh
--- test/T150-tagging.sh.orig
+++ test/T150-tagging.sh
@@ -103,21 +103,21 @@ thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; Two 
 EOF
 
 test_begin_subtest "--input"
-notmuch dump --format=batch-tag > backup.tags
+notmuch dump --format=batch-tag | zcat > backup.tags
 notmuch tag --input=batch.in
 notmuch search \* | notmuch_search_sanitize > OUTPUT
 notmuch restore --format=batch-tag < backup.tags
 test_expect_equal_file batch.expected OUTPUT
 
 test_begin_subtest "--batch --input"
-notmuch dump --format=batch-tag > backup.tags
+notmuch dump --format=batch-tag | zcat > backup.tags
 notmuch tag --batch --input=batch.in
 notmuch search \* | notmuch_search_sanitize > OUTPUT
 notmuch restore --format=batch-tag < backup.tags
 test_expect_equal_file batch.expected OUTPUT
 
 test_begin_subtest "--batch --input --remove-all"
-notmuch dump --format=batch-tag > backup.tags
+notmuch dump --format=batch-tag | zcat > backup.tags
 notmuch tag +foo +bar -- One
 notmuch tag +tag7 -- Two
 notmuch tag --batch --input=batch.in --remove-all
@@ -131,7 +131,7 @@ test_expect_equal_file batch_removeall.expected OUTPUT
 rm batch_removeall.expected
 
 test_begin_subtest "--batch, dependence on previous line"
-notmuch dump --format=batch-tag > backup.tags
+notmuch dump --format=batch-tag | zcat > backup.tags
 notmuch tag --batch<<EOF
 +trigger -- One
 +second_tag -- tag:trigger
@@ -144,18 +144,18 @@ EOF
 test_expect_equal_file EXPECTED OUTPUT
 
 test_begin_subtest "--batch, blank lines and comments"
-notmuch dump | sort > EXPECTED
+notmuch dump | zcat | sort > EXPECTED
 notmuch tag --batch <<EOF
 # this line is a comment; the next has only white space
  	 
 
 # the previous line is empty
 EOF
-notmuch dump | sort > OUTPUT
+notmuch dump | zcat | sort > OUTPUT
 test_expect_equal_file EXPECTED OUTPUT
 
 test_begin_subtest '--batch: checking error messages'
-notmuch dump --format=batch-tag > BACKUP
+notmuch dump --format=batch-tag | zcat > BACKUP
 notmuch tag --batch <<EOF 2>OUTPUT
 # the next line has a space
  
@@ -190,7 +190,7 @@ notmuch restore --format=batch-tag < BACKUP
 test_expect_equal_file EXPECTED OUTPUT
 
 test_begin_subtest '--batch: tags with quotes'
-notmuch dump --format=batch-tag > BACKUP
+notmuch dump --format=batch-tag | zcat > BACKUP
 
 notmuch tag --batch <<EOF
 +%22%27%22%27%22%22%27%27 -- One
@@ -209,7 +209,7 @@ notmuch restore --format=batch-tag < BACKUP
 test_expect_equal_file EXPECTED OUTPUT
 
 test_begin_subtest '--batch: tags with punctuation and space'
-notmuch dump --format=batch-tag > BACKUP
+notmuch dump --format=batch-tag | zcat > BACKUP
 
 notmuch tag --batch <<EOF
 +%21@%23%24%25%5e%26%2a%29-_=+%5b%7b%5c%20%7c%3b%3a%27%20%22,.%3c%60%7e -- One
@@ -230,7 +230,7 @@ notmuch restore --format=batch-tag < BACKUP
 test_expect_equal_file EXPECTED OUTPUT
 
 test_begin_subtest '--batch: unicode tags'
-notmuch dump --format=batch-tag > BACKUP
+notmuch dump --format=batch-tag | zcat > BACKUP
 
 notmuch tag --batch <<EOF
 +%2a@%7d%cf%b5%f4%85%80%adO3%da%a7 -- One
@@ -256,7 +256,7 @@ notmuch restore --format=batch-tag < BACKUP
 test_expect_equal_file EXPECTED OUTPUT
 
 test_begin_subtest "--batch: only space and % needs to be encoded."
-notmuch dump --format=batch-tag > BACKUP
+notmuch dump --format=batch-tag | zcat > BACKUP
 
 notmuch tag --batch <<EOF
 +winner *
@@ -285,15 +285,15 @@ test_begin_subtest '--batch: unicode message-ids'
 ${TEST_DIRECTORY}/random-corpus --config-path=${NOTMUCH_CONFIG} \
      --num-messages=100
 
-notmuch dump --format=batch-tag | sed 's/^.* -- /+common_tag -- /' | \
+notmuch dump --format=batch-tag | zcat | sed 's/^.* -- /+common_tag -- /' | \
     sort > EXPECTED
 
-notmuch dump --format=batch-tag | sed 's/^.* -- /  -- /' > INTERMEDIATE_STEP
+notmuch dump --format=batch-tag | zcat | sed 's/^.* -- /  -- /' > INTERMEDIATE_STEP
 notmuch restore --format=batch-tag < INTERMEDIATE_STEP
 
 notmuch tag --batch < EXPECTED
 
-notmuch dump --format=batch-tag| \
+notmuch dump --format=batch-tag | zcat | \
     sort > OUTPUT
 
 test_expect_equal_file EXPECTED OUTPUT
