From 5cb8fc5a359c5d37fd82a36fbc550943d7622d57 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Mon, 24 Apr 2017 19:29:09 +0200 Subject: [PATCH] valgrind: added make target --- tests/Makefile.inc | 8 ++++++-- tests/valgrind.supp | 8 ++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 tests/valgrind.supp diff --git a/tests/Makefile.inc b/tests/Makefile.inc index 9ab2a61a7..15a1f2e4e 100644 --- a/tests/Makefile.inc +++ b/tests/Makefile.inc @@ -3,6 +3,10 @@ tests: unit-tests integration-tests -run-tests: run-unit-tests run-integration-tests +run-tests: run-unit-tests run-integration-tests run-valgrind -.PHONY: tests run-tests +run-valgrind: src + valgrind --leak-check=full --show-leak-kinds=all --suppressions=$(SRCDIR)/tests/valgrind.supp $(BUILDDIR)/villas-node & sleep 2; kill $$!; sleep 1; kill $$! + valgrind --leak-check=full --show-leak-kinds=all --suppressions=$(SRCDIR)/tests/valgrind.supp $(BUILDDIR)/villas-pipe $(SRCDIR)/etc/websocket-loopback.conf ws1 & sleep 2; kill $$!; sleep 1; kill $$! + +.PHONY: tests run-tests run-valgrind diff --git a/tests/valgrind.supp b/tests/valgrind.supp new file mode 100644 index 000000000..ecd01c167 --- /dev/null +++ b/tests/valgrind.supp @@ -0,0 +1,8 @@ +{ + openssl + Memcheck:Leak + match-leak-kinds: reachable + ... + fun:SSL_library_init + ... +} \ No newline at end of file