]> diplodocus.org Git - nmh/blobdiff - test/mhstore/test-mhstore
mhstore(1) now obeys its -noverbose switch.
[nmh] / test / mhstore / test-mhstore
index 2dc0357..62d0aa2 100755 (executable)
@@ -116,7 +116,8 @@ Content-Type: text/plain; charset="iso-8859-1"; name="test4.txt"
 Content-Disposition: attachment; filename="test4.txt"
 Content-Transfer-Encoding: base64
 
-VGhpcyBpcyB0aGUgZm91cnRoIHRleHQvcGxhaW4gcGFydC4K
+VGhpcyBpcyB0aGUgZm91cnRoIHRleHQvcGxhaW4gcGFydC4NClRoaXMgdGVzdCBoYXMgbXVsdGlw
+bGUgbGluZXMuDQo=
 
 ------- =_aaaaaaaaaa0--
 EOF
@@ -153,12 +154,14 @@ EOF
 check $expected 11.3.txt
 cat > $expected <<EOF
 This is the fourth text/plain part.
+This test has multiple lines.
 EOF
 check $expected 11.4.txt
 
 # check -auto
 cat > $expected <<EOF
 This is the fourth text/plain part.
+This test has multiple lines.
 EOF
 run_test 'mhstore last -part 4 -auto' \
   'storing message 11 part 4 as file test4.txt'
@@ -169,14 +172,13 @@ run_test 'mhstore last -part 4 -auto -noauto' \
   'storing message 11 part 4 as file 11.4.txt'
 check $expected 11.4.txt 'keep first'
 
-# check -verbose, which doesn't do anything
-run_test 'mhstore last -part 4 -verbose' \
+# check -verbose, the default
+run_test 'mhstore last -part 4 -noverbose -verbose' \
   'storing message 11 part 4 as file 11.4.txt'
 check $expected 11.4.txt 'keep first'
 
-# check -noverbose, the default
-run_test 'mhstore last -part 4 -verbose -noverbose' \
-  'storing message 11 part 4 as file 11.4.txt'
+# check -noverbose
+run_test 'mhstore last -part 4 -noverbose' ''
 check $expected 11.4.txt
 
 # check that -auto obeys Content-Disposition header
@@ -307,6 +309,7 @@ mkdir "$dir"
 echo "nmh-storage: $storagedir" >> $MH
 cat > $expected <<EOF
 This is the fourth text/plain part.
+This test has multiple lines.
 EOF
 run_test 'mhstore 11 -part 4' \
 "storing message 11 part 4 as file $storagedir/11.4.txt"