]> diplodocus.org Git - nmh/blobdiff - test/mhfixmsg/test-mhfixmsg
Added welcome message when nmh detects that its version changed.
[nmh] / test / mhfixmsg / test-mhfixmsg
index 95f6fa15db3f3c99fd502e3c91ab6a1c3bd6e523..152b11c7913c1ca4f58175d02c00ee664fe047a2 100755 (executable)
@@ -70,7 +70,8 @@ Usage: mhfixmsg [+folder] [msgs] [switches]
   -help
 EOF
 
-run_prog mhfixmsg -help >"$actual" 2>&1
+#### Skip nmh intro text.
+run_prog mhfixmsg -help | sed '/^$/,$d' >"$actual" 2>&1
 check "$expected" "$actual"
 
 
@@ -575,7 +576,7 @@ check "$expected" "$actual"
 
 # check attempted (default, 8 bit) -decodetext of binary text
 #### Generated the encoded text below with:
-####   $ printf '\xbd\xb2=\xbc\x00\n' | base64
+####   $ printf '\275\262=\274\000\n' | base64
 start_test "attempted (default, 8 bit) -decodetext of binary text"
 cat >`mhpath new` <<EOF
 To: recipient@example.com
@@ -719,7 +720,7 @@ check `mhpath last` "$expected"
 
 # check -decodetext of binary (containing ASCII NUL) text
 start_test "-decodetext of binary (containing ASCII NUL) text"
-printf "%s\xbd\xb2=\xbc\x00%s" "To: recipient@example.com
+printf "%s\275\262=\274\000%s" "To: recipient@example.com
 From: sender@example.com
 Subject: mhfixmsg binary decode test
 MIME-Version: 1.0
@@ -832,7 +833,7 @@ Content-Transfer-Encoding: 8bit
 EOF
 
 #### Generated the encoded text below with:
-####   $ printf '\xbd\xb2=\xbc\n' | base64
+####   $ printf '\275\262=\274\n' | base64
 cat >`mhpath new` <<EOF
 To: recipient@example.com
 From: sender@example.com