diff options
Diffstat (limited to 'tests/gentest/divert.1.m4')
-rwxr-xr-x | tests/gentest/divert.1.m4 | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/gentest/divert.1.m4 b/tests/gentest/divert.1.m4 new file mode 100755 index 00000000..acfc17d7 --- /dev/null +++ b/tests/gentest/divert.1.m4 @@ -0,0 +1,25 @@ +#!/bin/sh + +# gentest/divert.1.m4 is part of the GNU m4 testsuite +# generated from example in ../doc/m4.texinfo line 2580 + +. ${srcdir}/defs + +cat <<\EOF >in +divert(1) +This text is diverted. +divert +This text is not diverted. +EOF + +cat <<\EOF >ok + +This text is not diverted. + +This text is diverted. +EOF + +$M4 -d in >out + +$CMP -s out ok + |