/[bison]/bison/tests/calc.at
ViewVC logotype

Diff of /bison/tests/calc.at

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by akim, Thu Oct 4 14:55:21 2001 UTC revision 1.8 by akim, Thu Oct 18 15:26:56 2001 UTC
# Line 273  m4_define([_AT_CHECK_CALC], Line 273  m4_define([_AT_CHECK_CALC],
273  ]])  ]])
274  AT_CHECK([calc input], 0, [], [stderr])dnl  AT_CHECK([calc input], 0, [], [stderr])dnl
275  AT_CHECK([wc -l <stderr | sed 's/[[^0-9]]//g'], 0,  AT_CHECK([wc -l <stderr | sed 's/[[^0-9]]//g'], 0,
276           [m4_match([$1], [--debug],           [m4_bmatch([$1], [--debug],
277                     [$3], [0])                      [$3], [0])
278  ])  ])
279  ])  ])
280    
# Line 302  AT_CHECK([calc input], 0, [], [stderr]) Line 302  AT_CHECK([calc input], 0, [], [stderr])
302    
303    
304  AT_CHECK([wc -l <stderr | sed 's/[[^0-9]]//g'], 0,  AT_CHECK([wc -l <stderr | sed 's/[[^0-9]]//g'], 0,
305           [m4_match([$1], [--debug],           [m4_bmatch([$1], [--debug],
306                     [$3], [1])                      [$3], [1])
307  ])  ])
308    
309  egrep -v '^((Start|Enter|Read|Reduc|Shift)ing|state|Error:) ' stderr >at-stderr  egrep -v '^((Start|Enter|Read|Reduc|Shift)ing|state|Error:) ' stderr >at-stderr
310  mv at-stderr stderr  mv at-stderr stderr
311    
312  AT_CHECK([cat stderr], 0,  AT_CHECK([cat stderr], 0,
313  [m4_match([$1], [--location], [$4: ])[]dnl  [m4_bmatch([$1], [--location], [$4: ])[]dnl
314  parse error[]dnl  parse error[]dnl
315  m4_match([$1], [--yyerror-verbose], [, $5])[]dnl  m4_bmatch([$1], [--yyerror-verbose], [, $5])[]dnl
316    
317  ])  ])
318    
# Line 330  AT_SETUP([Calculator $1]) Line 330  AT_SETUP([Calculator $1])
330  AT_DATA_CALC_Y([$1])  AT_DATA_CALC_Y([$1])
331    
332  # Specify the output files to avoid problems on different file systems.  # Specify the output files to avoid problems on different file systems.
333  AT_CHECK([bison calc.y -o calc.c m4_patsubst([$1], [--yyerror-verbose])],  AT_CHECK([bison calc.y -o calc.c m4_bpatsubst([$1], [--yyerror-verbose])],
334           [0], [], [])           [0], [], [])
335  AT_CHECK([$CC $CFLAGS $CPPFLAGS calc.c -o calc], 0, [], [])  
336    # Some compilers issue warnings we don't want to hear about.
337    # Maybe some day we will have proper Autoconf macros to disable these
338    # warnings, but this place is not the right one for that.
339    # So let's keep only GCC warnings, which we know are sane.
340    AT_CHECK([$CC $CFLAGS $CPPFLAGS calc.c -o calc], 0, [], [stderr])
341    AT_CHECK([test "$GCC" = yes && cat stderr])
342    
343  # Test the priorities.  # Test the priorities.
344  _AT_CHECK_CALC([$1],  _AT_CHECK_CALC([$1],

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26