3 # Some simple tests of ylwrap functionality.
5 .
$srcdir/defs ||
exit 1
7 # Fail gracefully if no autoconf.
9 # Likewise for some other tools.
10 (gcc
-v) > /dev
/null
2>&1 ||
exit 77
11 (bison
-V) > /dev
/null
2>&1 ||
exit 77
13 cat > configure.
in << 'END'
15 AC_CONFIG_AUX_DIR
([.
])
16 AM_INIT_AUTOMAKE
(foo
, 0.1)
24 cat > Makefile.am
<< 'END'
25 bin_PROGRAMS
= foo bar
26 foo_SOURCES
= parse.y foo.c
27 bar_SOURCES
= bar.y foo.c
31 cat > parse.y
<< 'END'
33 int yylex
() {return 0;}
34 void yyerror
(char
*s
) {}
37 foobar
: 'f' 'o' 'o' 'b' 'a' 'r' {};
43 int yylex
() {return 0;}
44 void yyerror
(char
*s
) {}
47 fubar
: 'f' 'o' 'o' 'b' 'a' 'r' {};
51 int main
() { return 0; }
54 # We are not checking Autoconf, so we pick $YACC for it.
72 grep '^#.*/sub/\.\./' bar.c
&& exit 1
73 grep '^#.*/sub/\.\./' parse.c
&& exit 1