aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorPascal Buhler <pabuhler@cisco.com>2017-10-16 13:09:39 +0200
committerPascal Buhler <pabuhler@cisco.com>2017-10-16 13:09:39 +0200
commitf358700f8655f37911877a8b72468ee1655387d2 (patch)
tree4cbe4cd982f90d24ade3663c1828ee5db17f532a /Makefile.in
parenteb39cf1509b153de6422e6f5571346720bac85ff (diff)
downloadlibsrtp2-f358700f8655f37911877a8b72468ee1655387d2.tar.gz
Add a runtest-valgrind target
Ensure this target is also run in travis-ci
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index 63021c2..cc2ddf1 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -6,6 +6,7 @@
# targets:
#
# runtest runs test applications
+# runtest-valgrind runs test applications with valgrind
# test builds test applications
# libsrtp2.a static library implementing srtp
# libsrtp2.so shared library implementing srtp
@@ -37,6 +38,12 @@ endif
@echo "libsrtp2 test applications passed."
$(MAKE) -C crypto runtest
+runtest-valgrind: test
+ @echo "running libsrtp2 test applications... (valgrind)"
+ valgrind --error-exitcode=1 --leak-check=full test/test_srtp$(EXE) -v >/dev/null
+ valgrind --error-exitcode=1 --leak-check=full test/srtp_driver$(EXE) -v >/dev/null
+ @echo "libsrtp2 test applications passed. (valgrind)"
+
# makefile variables
CC = @CC@