summaryrefslogtreecommitdiff
path: root/tests/m4wrap.1.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/m4wrap.1.test')
-rwxr-xr-xtests/m4wrap.1.test25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/m4wrap.1.test b/tests/m4wrap.1.test
new file mode 100755
index 00000000..1a27ac3c
--- /dev/null
+++ b/tests/m4wrap.1.test
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+# m4wrap.1.test is part of the GNU m4 testsuite
+# generated from example in ../doc/m4.texinfo line 2396
+
+. ${srcdir}/defs
+
+cat <<\EOF >in
+define(`cleanup', `This is the `cleanup' actions.
+')
+m4wrap(`cleanup')
+This is the first and last normal input line.
+EOF
+
+cat <<\EOF >ok
+
+
+This is the first and last normal input line.
+This is the cleanup actions.
+EOF
+
+$M4 -d in >out
+
+$CMP -s out ok
+