From dc0e2941b5019ecc3ef704edfae0ba343a81430e Mon Sep 17 00:00:00 2001 From: David Levine Date: Wed, 8 Feb 2012 21:42:46 -0600 Subject: [PATCH] Added mhshow subpart test. --- test/tests/mhshow/test-subpart | 51 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 test/tests/mhshow/test-subpart 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 -- 1.7.10.4