spek

Acoustic spectrum analyser
git clone http://git.hanabi.in/repos/spek.git
Log | Files | Refs | README

commit 7a1112a3a846fe9575ab8dc6670b5c00effe1c32
parent c96848edc1f0e192a8323b235a2dc04619ac5cd1
Author: Alexander Kojevnikov <alexander@kojevnikov.com>
Date:   Thu, 21 Feb 2013 18:27:03 -0800

Run unit tests with valgrind

Diffstat:
Mconfigure.ac | 3+++
Mtests/Makefile.am | 4++++
2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac @@ -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]) diff --git a/tests/Makefile.am b/tests/Makefile.am @@ -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 = \