summaryrefslogtreecommitdiff
path: root/tests/include.3.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/include.3.test')
-rwxr-xr-xtests/include.3.test24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/include.3.test b/tests/include.3.test
new file mode 100755
index 00000000..edf228d0
--- /dev/null
+++ b/tests/include.3.test
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+# include.3.test is part of the GNU m4 testsuite
+# generated from example in ../doc/m4.texinfo line 2490
+
+. ${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
+