summaryrefslogtreecommitdiff
path: root/tests/ifelse.1.test
blob: 7942a0c2d9bb566aef6e995f257f3fdfe6b29fb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

# ifelse.1.test is part of the GNU m4 testsuite
# generated from example in ../doc/m4.texinfo line 1479

. ${srcdir}/defs

cat <<\EOF >in
ifelse(`foo', `bar', `true')
ifelse(`foo', `foo', `true')
ifelse(`foo', `bar', `true', `false')
ifelse(`foo', `foo', `true', `false')
EOF

cat <<\EOF >ok

true
false
true
EOF

$M4 -d in >out

$CMP -s out ok