]>
diplodocus.org Git - nmh/blob - test/mhl/test-mhl-flags
3 # Test of various (well, start with one) function escapes.
7 if test -z "${MH_OBJ_DIR}"; then
8 srcdir
=`dirname "$0"`/..
/..
9 MH_OBJ_DIR
=`cd "$srcdir" && pwd`; export MH_OBJ_DIR
12 .
"$MH_OBJ_DIR/test/common.sh"
15 mhl
="${MH_LIB_DIR}/mhl"
16 expected
="$MH_TEST_DIR/$$.expected"
17 actual
="$MH_TEST_DIR/$$.actual"
19 cat >`mhpath new` <<EOF
21 From: sender@example.com
22 To: recipient@example.com
23 Subject: message with blank lines
24 Date: Mon, 29 Apr 2013 11:51:45 -0400
26 There are two blank lines below. And there is a trailing space:
27 And another trailing space:
33 # check nortrim (default), and that trailing whitespace in a
34 # component is trimmed when filtering blank lines
35 cat >"$expected" <<EOF
36 > There are two blank lines below. And there is a trailing space:
37 > And another trailing space:
42 cat >"$MH_TEST_DIR/test.format" <<EOF
43 body:component="> ",overflowtext=,overflowoffset=0
46 "$mhl" -nomoreproc -form "$MH_TEST_DIR/test.format" `mhpath last` >"$actual"
47 check
"$expected" "$actual"
51 cat >"$expected" <<EOF
52 > There are two blank lines below. And there is a trailing space:
53 > And another trailing space:
58 cat >"$MH_TEST_DIR/test.format" <<EOF
59 body:component="> ",overflowtext=,overflowoffset=0,rtrim
62 "$mhl" -nomoreproc -form "$MH_TEST_DIR/test.format" `mhpath last` >"$actual"
63 check
"$expected" "$actual"
66 rm -f "$MH_TEST_DIR/test.format"