X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/69b67b6827ed4408749cb66af9ea7613e0a22d93..d69a4a710d33cad25f4ea75c40a90c38afe2d4e9:/test/mhshow/test-subpart?ds=sidebyside diff --git a/test/mhshow/test-subpart b/test/mhshow/test-subpart index 161dceab..27fb9077 100755 --- a/test/mhshow/test-subpart +++ b/test/mhshow/test-subpart @@ -51,18 +51,22 @@ EOF # Write the expected output. cat > $expected < $actual 2>&1 -check "$expected" "$actual" +check "$expected" "$actual" : part 1.1 + + +# tests of -part/-type/-prefer cat > $msgfile < -Subject: mhshow -part/-type/prefer test +Subject: mhshow -part/-type/-prefer test Date: Thu, 29 Jan 2015 18:12:21 +0000 (GMT) Content-Type: multipart/mixed; boundary="BoundaryMixed" @@ -71,7 +75,7 @@ Content-type: multipart/alternative; boundary="BoundaryAlternative1" --BoundaryAlternative1 -Content-type: text/plain; charset=ISO-8859-1; format=flowed +Content-type: text/plain; charset=US-ASCII; format=flowed Content-transfer-encoding: 8bit This is the body text/plain part. @@ -105,36 +109,42 @@ EOF # Write the expected output. cat > $expected < $actual 2>&1 -check "$expected" "$actual" +# The sed command removes blank lines and leading space that lynx inserts. +run_prog mhshow -part 1.1.1 -form mhl.null $msgnum | + sed '/^$/D; s/^ *//;' > $actual 2>&1 +check "$expected" "$actual" : part 1.1.1 # Write the expected output. cat > $expected < $actual 2>&1 -check "$expected" "$actual" +check "$expected" "$actual" : part 1.2 # Write the expected output. cat > $expected < $actual 2>&1 -check "$expected" "$actual" +check "$expected" "$actual" : part conflicting text/plain, part 1 switches # Write the expected output. cat > $expected < $actual 2>&1 -check "$expected" "$actual" +check "$expected" "$actual" : part 2 # Write the expected output. cat > $expected < $actual 2>&1 -check "$expected" "$actual" +check "$expected" "$actual" : type text/plain # Write the expected output. cat > $expected < $actual 2>&1 -check "$expected" "$actual" +check "$expected" "$actual" : prefer text/plain exit $failed