]> git.saurik.com Git - bison.git/blob - examples/calc++/test
* examples/calc++/test: Be quiet unless VERBOSE.
[bison.git] / examples / calc++ / test
1 #! /bin/sh
2
3 test -z "$VERBOSE" && {
4 exec > /dev/null 2>&1
5 }
6
7 cat >input <<EOF
8 a := 1
9 b := 2
10 c := 3
11 d := a + b * c
12 d
13 EOF
14
15 ./calc++ input
16 ./calc++ -p input
17
18 cat >input <<EOF
19 a := 1
20 d := a + b * c
21 EOF
22 ./calc++ input
23
24 set -x
25 echo toto
26 cat >input <<EOF
27 toto := 1
28 toto
29 EOF
30 ./calc++ -s input
31
32 rm input