From 94c28cc5e9e28d1215619721901d3e0580a758ef Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Mon, 21 Jan 2013 15:45:17 +0100 Subject: [PATCH] tests: more information about Lex and Yacc programs * t/get-sysconf.sh: Try to also get the version of '$LEX' and '$YACC'. This will help debugging of user-reported problems. Signed-off-by: Stefano Lattarini --- t/get-sysconf.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/t/get-sysconf.sh b/t/get-sysconf.sh index 4c681081e..bd4932f4c 100755 --- a/t/get-sysconf.sh +++ b/t/get-sysconf.sh @@ -46,6 +46,14 @@ $PERL -V || st=1 # happen with older perl installation, or on MinGW/MSYS. $PERL -e 'use TAP::Parser; print $TAP::Parser::VERSION, "\n"' || : +# It's OK if the selected Lex and Yacc programs don't know how to print +# the version number or the help screen; those are usually available only +# for Flex and Bison. +$LEX --version || : +$LEX --help || : +$YACC --version || : +$YACC --help || : + cat "$am_top_builddir/config.log" || st=1 cat "$am_top_builddir/t/wrap/aclocal-$APIVERSION" || st=1 cat "$am_top_builddir/t/wrap/automake-$APIVERSION" || st=1 -- 2.47.2