]> diplodocus.org Git - nmh/commitdiff
Forgot to commit test-mhbuild. And thank Tom Lane for reporting bug.
authorDavid Levine <levinedl@acm.org>
Mon, 7 Nov 2016 21:43:01 +0000 (16:43 -0500)
committerDavid Levine <levinedl@acm.org>
Mon, 7 Nov 2016 21:43:01 +0000 (16:43 -0500)
Update to commit 6c359ae82651d117af71c55ce1e56f3c5db18bfe.

test/mhbuild/test-mhbuild [new file with mode: 0755]

diff --git a/test/mhbuild/test-mhbuild b/test/mhbuild/test-mhbuild
new file mode 100755 (executable)
index 0000000..8d08661
--- /dev/null
@@ -0,0 +1,41 @@
+#!/bin/sh
+######################################################
+#
+# Basic mhbuild tests.
+#
+######################################################
+
+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
+
+expected="$MH_TEST_DIR/test-mhbuild$$.expected"
+
+start_test "-nodirectives"
+cat >"$expected" <<'EOF'
+Subject: test -nodirectives
+MIME-Version: 1.0
+Content-Type: text/plain; charset="us-ascii"
+
+#define line begins with # and ends with backslash-newline \
+        all characters should be preserved
+EOF
+
+cat >"`mhpath new`" <<'EOF'
+Subject: test -nodirectives
+--------
+#define line begins with # and ends with backslash-newline \
+        all characters should be preserved
+EOF
+
+run_test "mhbuild -nodirectives `mhpath last`"
+check "`mhpath last`" "$expected"
+
+
+finish_test
+exit $failed