summaryrefslogtreecommitdiff
path: root/tests/gentest/undivert.1.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gentest/undivert.1.test')
-rwxr-xr-xtests/gentest/undivert.1.test27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/gentest/undivert.1.test b/tests/gentest/undivert.1.test
new file mode 100755
index 00000000..3d04dc8b
--- /dev/null
+++ b/tests/gentest/undivert.1.test
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# gentest/undivert.1.test is part of the GNU m4 testsuite
+# generated from example in ../doc/m4.texinfo line 2631
+
+. ${srcdir}/defs
+
+cat <<\EOF >in
+divert(1)
+This text is diverted.
+divert
+This text is not diverted.
+undivert(1)
+EOF
+
+cat <<\EOF >ok
+
+This text is not diverted.
+
+This text is diverted.
+
+EOF
+
+$M4 -d in >out
+
+$CMP -s out ok
+