From 4692445bb90e907dfb96ca05364f4a5638192eba Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Thu, 1 Mar 2012 15:17:43 -0500 Subject: [PATCH] A test for burst; still needs work. --- Makefile.am | 4 +++- test/burst/test-burst | 53 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100755 test/burst/test-burst diff --git a/Makefile.am b/Makefile.am index faa7485..7d8568f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -40,7 +40,9 @@ TESTS_ENVIRONMENT = MH_OBJ_DIR=@abs_builddir@ \ ## ## Important note: the "cleanup" test should always be last ## -TESTS = test/bad-input/test-header test/comp/test-comp-format \ +TESTS = test/bad-input/test-header \ + test/burst/test-burst \ + 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 \ diff --git a/test/burst/test-burst b/test/burst/test-burst new file mode 100755 index 0000000..872844c --- /dev/null +++ b/test/burst/test-burst @@ -0,0 +1,53 @@ +#!/bin/sh +# +# Tests to see if bursting messages works 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 message that we can burst +# + +cat > "${MH_TEST_DIR}/Mail/inbox/11" < +To: Test Recipient +Date: Friday, 29 Sep 2006 00:00:00 +Subject: Test digest + +------- Message one + +From: Mister Burster +To: Nobody 1 +Date: Thursday, 28 Sep 2006 00:01:00 +Subject: Message one + +This is message one + +------- Message two + +From: Mister Burster +To: Nobody 2 +Date: Thursday, 28 Sep 2006 00:02:00 +Subject: Message two + +This is message two +For real. + +------- + +End of all messages +EOF + +burst 11 || exit + +scan 11-last + +exit 0 -- 1.7.10.4