New ci task has been added that checks for possible memory leaks when running unittests. Messages from valgrind are displayed only when leak is detected.
refs #227
- linux
- amd64
+
deckard:linux:amd64:
stage: test
script:
- linux
- amd64
+test:linux:amd64:valgrind:
+ image: cznic/ubuntu-valgrind:16.04
+ stage: test
+ script:
+ - PREFIX=$(pwd)/.local DEBUGGER="valgrind --error-exitcode=1 --leak-check=full --trace-children=yes --quiet" make -k check
+ dependencies:
+ - build:linux:amd64
+ tags:
+ - docker
+ - linux
+ - amd64
+
respdiff:linux:amd64:
image: cznic/ubuntu-respdif:16.04
stage: test
$(1)_DEPEND := $(tests_DEPEND)
$(call make_bin,$(1),tests)
$(1): $$($(1))
- @$(preload_syms) $$<
+ @$(preload_syms) $(DEBUGGER) $$<
.PHONY: $(1)
endef