Run unit tests with valgrind

This commit is contained in:
Alexander Kojevnikov 2013-02-21 18:27:03 -08:00
parent c96848edc1
commit 7a1112a3a8
2 changed files with 7 additions and 0 deletions

@ -30,6 +30,9 @@ AS_CASE([$host],
)
AC_MSG_RESULT([$os])
AC_CHECK_PROG(HAVE_VALGRIND, valgrind, yes, no)
AM_CONDITIONAL([USE_VALGRIND], [test x$HAVE_VALGRIND = xyes])
AC_CHECK_LIB(m, log10)
PKG_CHECK_MODULES(FFMPEG, [libavformat >= 54.2 libavcodec >= 53.25 libavutil >= 51.18])

@ -1,5 +1,9 @@
TESTS = test
if USE_VALGRIND
TESTS_ENVIRONMENT = valgrind --leak-check=full --quiet --error-exitcode=1
endif
check_PROGRAMS = $(TESTS)
test_SOURCES = \