1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

valgrind: added make target

This commit is contained in:
Steffen Vogel 2017-04-24 19:29:09 +02:00
parent 4e5dc58e18
commit 5cb8fc5a35
2 changed files with 14 additions and 2 deletions

View file

@ -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

8
tests/valgrind.supp Normal file
View file

@ -0,0 +1,8 @@
{
openssl
Memcheck:Leak
match-leak-kinds: reachable
...
fun:SSL_library_init
...
}