summaryrefslogtreecommitdiff
path: root/examples/undivert.test
blob: 6814a7325eec3ccef5c2c1bea12350dd031394b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

# undivert.test is part of the GNU m4 testsuite

. ${srcdir}/defs

cat ${srcdir}/undivert.m4 >in

cat <<\EOF >ok

# undiverted file.
This is to be undiverted soon.

# included file.
This is to be UNDIVERTED soon.

EOF

M4PATH=$srcdir:$srcdir/../tests $M4 -d in >out 2>err
sed -e "s, ../../src/m4:, m4:," err >sederr && mv sederr err
$CMP -s out ok