]> git.saurik.com Git - bison.git/blobdiff - tests/Makefile.am
* configure.ac (AC_GNU_SOURCE): Use it instead of hand written code.
[bison.git] / tests / Makefile.am
index 0bb522c910415d1ff7ebe9e097796d8029280eed..d41846ac2d56585175156895e70a15d318ad6935 100644 (file)
@@ -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++