Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
5cbaf8b7
Commit
5cbaf8b7
authored
Jun 18, 2012
by
Mukund Sivaraman
Browse files
[master] Use make targets for Valgrind instead of configure switches
parent
0557f306
Changes
2
Show whitespace changes
Inline
Side-by-side
Makefile.am
View file @
5cbaf8b7
...
...
@@ -18,6 +18,24 @@ DISTCHECK_CONFIGURE_FLAGS += $(DISTCHECK_GTEST_CONFIGURE_FLAG)
dist_doc_DATA
=
AUTHORS COPYING ChangeLog README
.PHONY
:
check-valgrind check-valgrind-suppress
check-valgrind
:
if
HAVE_VALGRIND
@
VALGRIND_COMMAND
=
"
$(VALGRIND)
-q --gen-suppressions=all --track-origins=yes --num-callers=48 --leak-check=full --fullpath-after="
\
make
-C
$(abs_top_builddir)
check
else
@echo
"*** Valgrind is required for check-valgrind ***"
;
exit
1;
endif
check-valgrind-suppress
:
if
HAVE_VALGRIND
@
VALGRIND_COMMAND
=
"
$(VALGRIND)
-q --gen-suppressions=all --error-exitcode=1 --suppressions=
$(abs_top_srcdir)
/src/valgrind-suppressions --suppressions=
$(abs_top_srcdir)
/src/valgrind-suppressions.revisit --num-callers=48 --leak-check=full --fullpath-after="
\
make
-C
$(abs_top_builddir)
check
else
@echo
"*** Valgrind is required for check-valgrind-suppress ***"
;
exit
1;
endif
clean-cpp-coverage
:
@
if
[
$(USE_LCOV)
=
yes
]
;
then
\
$(LCOV)
--directory
.
--zerocounters
;
\
...
...
configure.ac
View file @
5cbaf8b7
...
...
@@ -986,25 +986,10 @@ AM_COND_IF([ENABLE_LOGGER_CHECKS], [AC_DEFINE([ENABLE_LOGGER_CHECKS], [1], [Chec
AC_PATH_PROG(VALGRIND, valgrind, no)
AM_CONDITIONAL(HAVE_VALGRIND, test "x$VALGRIND" != "xno")
AC_ARG_ENABLE(valgrind, [AC_HELP_STRING([--enable-valgrind],
[run tests under Valgrind [default=no]])], enable_valgrind=$enableval, enable_valgrind=no)
AC_ARG_ENABLE(valgrind-suppressions, [AC_HELP_STRING([--enable-valgrind-suppressions],
[enable Valgrind suppressions [default=no]])], enable_valgrind_suppressions=$enableval, enable_valgrind_suppressions=no)
use_valgrind=no
use_valgrind_suppressions=no
if test "x$VALGRIND" != "xno" -a "x$enable_valgrind" != "xno"; then
if test "x$enable_valgrind_suppressions" != "xno"; then
VALGRIND_EXTRA="--error-exitcode=1 --suppressions=\$(top_srcdir)/src/valgrind-suppressions --suppressions=\$(top_srcdir)/src/valgrind-suppressions.revisit"
use_valgrind_suppressions=yes
else
VALGRIND_EXTRA="--track-origins=yes"
fi
VALGRIND_COMMAND="$VALGRIND -q --gen-suppressions=all $VALGRIND_EXTRA --num-callers=48 --leak-check=full --fullpath-after="
use_valgrind=yes
found_valgrind="not found"
if test "x$VALGRIND" != "xno"; then
found_valgrind="found"
fi
AC_SUBST(VALGRIND_COMMAND)
AC_CONFIG_FILES([Makefile
doc/Makefile
...
...
@@ -1316,8 +1301,7 @@ Features:
Developer:
Google Tests: $gtest_path
Valgrind: $use_valgrind
Valgrind Suppressions: $use_valgrind_suppressions
Valgrind: $found_valgrind
C++ Code Coverage: $USE_LCOV
Python Code Coverage: $USE_PYCOVERAGE
Logger checks: $enable_logger_checks
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment