2 # Id: run_test.sh,v 1.8 2012/01/15 11:50:35 tom Exp
20 for input
in ${TEST_DIR}/*.y
24 echo "?? ignored $input"
27 root
=`basename $input .y`
33 TYPE
=".output .tab.c .tab.h"
38 prefix
=`echo "$prefix" | sed -e 's/^code_//'`
42 prefix
=`echo "$prefix" | sed -e 's/^pure_//'`
51 $YACC $OPTS $opt2 -v -d -p $prefix -b $ROOT${opt2} $input
54 REF
=${TEST_DIR}/${root}${opt2}${type}
55 CMP
=${ROOT}${opt2}${type}
58 echo "...not found $CMP"
62 -e 's,#line \([1-9][0-9]*\) "'$TEST_DIR'/,#line \1 ",' \
69 elif ( cmp -s $REF $CMP )