mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 05:13:04 +00:00
* configure.ac (AC_GNU_SOURCE): Use it instead of hand written code.
(O0FLAGS): New. (VALGRIND, GXX): New. * tests/atlocal.in (CFLAGS): Use O0FLAGS. * tests/bison.in: Run $PREBISON a pre-command. * tests/Makefile.am (maintainer-check, maintainer-check-valgrind) (maintainer-check-g++): New. * Makefile.am (maintainer-check): New.
This commit is contained in:
@@ -71,3 +71,23 @@ check_SCRIPTS = bison
|
||||
# Run the test suite on the *installed* tree.
|
||||
installcheck-local:
|
||||
$(SHELL) $(TESTSUITE) AUTOTEST_PATH=$(exec_prefix)/bin
|
||||
|
||||
# Be real mean with it.
|
||||
.PHONY: maintainer-check-valgrind
|
||||
maintainer-check-valgrind: $(TESTSUITE)
|
||||
if test -n "$(VALGRIND)"; then \
|
||||
$(TESTSUITE) PREBISON='$(VALGRIND) -q' PREPARSER='$(VALGRIND) -q'; \
|
||||
else \
|
||||
true; \
|
||||
fi
|
||||
|
||||
.PHONY: maintainer-check-g++
|
||||
maintainer-check-g++: $(TESTSUITE)
|
||||
if test -n "$(VALGRIND)"; then \
|
||||
$(TESTSUITE) CC='$(GXX)' \
|
||||
else \
|
||||
true; \
|
||||
fi
|
||||
|
||||
.PHONY: maintainer-check
|
||||
maintainer-check: maintainer-check-valgrind maintainer-check-g++
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
# @configure_input@ -*- shell-script -*-
|
||||
# Configurable variable values for Bison test suite.
|
||||
# Copyright 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||
|
||||
# We need a C compiler.
|
||||
CC='@CC@'
|
||||
CFLAGS='@CFLAGS@ @WARNING_CFLAGS@ @WERROR_CFLAGS@'
|
||||
|
||||
# We want no optimization.
|
||||
CFLAGS='@O0CFLAGS@ @WARNING_CFLAGS@ @WERROR_CFLAGS@'
|
||||
|
||||
# We need `config.h'.
|
||||
CPPFLAGS="-I$abs_top_builddir @CPPFLAGS@"
|
||||
|
||||
@@ -5,4 +5,4 @@
|
||||
# We want to use the files shipped with Bison.
|
||||
BISON_PKGDATADIR='@abs_top_srcdir@/data'
|
||||
export BISON_PKGDATADIR
|
||||
exec '@abs_top_builddir@/src/bison' ${1+"$@"}
|
||||
exec $PREBISON '@abs_top_builddir@/src/bison' ${1+"$@"}
|
||||
|
||||
Reference in New Issue
Block a user