mirror of
https://github.com/alexkay/spek.git
synced 2025-04-22 03:10:29 +03:00
Run unit tests with valgrind
This commit is contained in:
parent
c96848edc1
commit
7a1112a3a8
@ -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 = \
|
||||
|
Loading…
x
Reference in New Issue
Block a user