From: David Levine Date: Mon, 7 Nov 2016 21:43:01 +0000 (-0500) Subject: Forgot to commit test-mhbuild. And thank Tom Lane for reporting bug. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/6d4ca328a621dda7daea6c166e4c5f96d74a9755?hp=6c359ae82651d117af71c55ce1e56f3c5db18bfe Forgot to commit test-mhbuild. And thank Tom Lane for reporting bug. Update to commit 6c359ae82651d117af71c55ce1e56f3c5db18bfe. --- diff --git a/test/mhbuild/test-mhbuild b/test/mhbuild/test-mhbuild new file mode 100755 index 00000000..8d08661a --- /dev/null +++ b/test/mhbuild/test-mhbuild @@ -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