Commit 7db62bd8 authored by conrad's avatar conrad

add valgrind environment to test suite


git-svn-id: http://svn.annodex.net/liboggz/trunk@463 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent 3dbb3ac5
......@@ -49,6 +49,26 @@ AM_CONDITIONAL(HAVE_DOCBOOKTOMAN,$HAVE_DOCBOOKTOMAN)
AC_CHECK_PROG(HAVE_DOCBOOK2HTML, docbook2html, true, false)
AM_CONDITIONAL(HAVE_DOCBOOK2HTML,$HAVE_DOCBOOK2HTML)
# Check for valgrind
ac_enable_valgrind=yes
AC_ARG_ENABLE(valgrind-testing,
[ --disable-valgrind-testing disable running of tests inside Valgrind ],
[ ac_enable_valgrind=no ], [ ac_enable_valgrind=yes] )
if test "x${ac_enable_valgrind}" = xyes ; then
AC_CHECK_PROG(HAVE_VALGRIND, valgrind, yes, no)
if test "x$HAVE_VALGRIND" = xyes ; then
VALGRIND_ENVIRONMENT="valgrind -q --leak-check=yes --show-reachable=yes --num-callers=100"
AC_SUBST(VALGRIND_ENVIRONMENT)
TESTS_INFO="'make check' test suite will be run under:
${VALGRIND_ENVIRONMENT}"
else
TESTS_INFO="'make check' to run test suite (Valgrind not found)"
fi
else
TESTS_INFO="'make check' to run test suite (Valgrind testing disabled)"
fi
dnl Checks for libraries.
LIBS=""
......@@ -254,6 +274,8 @@ AC_MSG_RESULT([
C header files: .............. ${prefix}/include/oggz
Documentation: ............... ${prefix}/share/doc/$PACKAGE
${TESTS_INFO}
Example programs will be built but not installed.
------------------------------------------------------------------------
])
......
......@@ -9,6 +9,8 @@ OGGZ_LIBS = $(OGGZDIR)/liboggz.la @OGG_LIBS@
# Test programs
TESTS_ENVIRONMENT = $(VALGRIND_ENVIRONMENT)
test: check
if OGGZ_CONFIG_WRITE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment