From: David Levine Date: Thu, 9 Feb 2012 03:42:46 +0000 (-0600) Subject: Added mhshow subpart test. X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=dc0e2941b5019ecc3ef704edfae0ba343a81430e;p=mmh Added mhshow subpart test. --- diff --git a/test/tests/mhshow/test-subpart b/test/tests/mhshow/test-subpart new file mode 100644 index 0000000..269c9f4 --- /dev/null +++ b/test/tests/mhshow/test-subpart @@ -0,0 +1,51 @@ +#!/bin/sh +###################################################### +# +# Test show of one part, fixed by +# 31cba404636730df219dd009ca5893ccc56d46af +# +###################################################### + +set -e + +expected=$MH_TEST_DIR/$$.expected +actual=$MH_TEST_DIR/$$.actual + +# Write message with a text/plain subpart. +msgfile=$(mhpath new) +msgnum=$(basename $msgfile) +cat > $msgfile < $expected < $actual 2>&1 +diff -u $expected $actual && rm -f $expected $actual