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