summaryrefslogtreecommitdiff
path: root/tests/gentest/include.3.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gentest/include.3.test')
-rwxr-xr-xtests/gentest/include.3.test24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/gentest/include.3.test b/tests/gentest/include.3.test
new file mode 100755
index 00000000..19c911b2
--- /dev/null
+++ b/tests/gentest/include.3.test
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+# gentest/include.3.test is part of the GNU m4 testsuite
+# generated from example in ../doc/m4.texinfo line 2489
+
+. ${srcdir}/defs
+
+cat <<\EOF >in
+define(`bar', include(`incl.m4'))
+This is `bar': >>>bar<<<
+EOF
+
+cat <<\EOF >ok
+
+This is bar: >>>Include file start
+foo
+Include file end
+<<<
+EOF
+
+M4PATH=$srcdir $M4 -d in >out
+
+$CMP -s out ok
+