]> diplodocus.org Git - nmh/blobdiff - test/mhl/test-mhl-flags
For FreeBSD builds, also search the ports tree for includes and libs.
[nmh] / test / mhl / test-mhl-flags
index 36a7323..b458a31 100755 (executable)
@@ -30,7 +30,8 @@ And another trailing space:
 EOF
 
 
-# check that blank lines don't end with whitepace
+# check nortrim (default), and that trailing whitespace in a
+# component is trimmed when filtering blank lines
 cat >"$expected" <<EOF
 > There are two blank lines below.  And there is a trailing space: 
 > And another trailing space: 
@@ -46,5 +47,21 @@ EOF
 check "$expected" "$actual"
 
 
+# check rtrim
+cat >"$expected" <<EOF
+> There are two blank lines below.  And there is a trailing space:
+> And another trailing space:
+>
+>
+EOF
+
+cat >"$MH_TEST_DIR/test.format" <<EOF
+body:component="> ",overflowtext=,overflowoffset=0,rtrim
+EOF
+
+"$mhl" -nomoreproc -form "$MH_TEST_DIR/test.format" `mhpath last` >"$actual"
+check "$expected" "$actual"
+
+
 rm -f "$MH_TEST_DIR/test.format"
 exit $failed