From: Ken Hornstein Date: Thu, 23 Feb 2012 17:03:09 +0000 (-0500) Subject: Create a test for the new mh-format processing available in comp(1). X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=98e2ac4aa016aecbca7e9b8e8bcb8ecfa7bba1b5;p=mmh Create a test for the new mh-format processing available in comp(1). --- diff --git a/Makefile.am b/Makefile.am index e86320e..2d3342b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -40,7 +40,8 @@ TESTS_ENVIRONMENT = MH_OBJ_DIR=@abs_builddir@ \ ## ## Important note: the "cleanup" test should always be last ## -TESTS = test/bad-input/test-header test/folder/test-create \ +TESTS = test/bad-input/test-header test/comp/test-comp-format \ + test/folder/test-create \ test/folder/test-total test/format/test-localmbox \ test/format/test-myname test/format/test-myhost \ test/format/test-mymbox \ diff --git a/test/comp/test-comp-format b/test/comp/test-comp-format new file mode 100755 index 0000000..1f1f8c5 --- /dev/null +++ b/test/comp/test-comp-format @@ -0,0 +1,64 @@ +#!/bin/sh +# +# Tests to see if the -from, -to, -cc, -fcc, and -subject switches to +# "comp" work correctly. +# + +if test -z "${MH_OBJ_DIR}"; then + srcdir=`dirname "$0"`/../.. + MH_OBJ_DIR=`cd "$srcdir" && pwd`; export MH_OBJ_DIR +fi + +. "$MH_OBJ_DIR/test/common.sh" + +setup_test + +# +# Create a test template file (we create one here just in case the master +# one changes) +# + +form="${MH_TEST_DIR}/$$.components" +cat > $form < $expected <