Commit 210aaf4d authored by Petr Špaček's avatar Petr Špaček

Merge branch 'ci-valgrind' into 'master'

Run unittests in CI under Valgrind memcheck

See merge request !353
parents 3c1d9d6e 8c2969a2
......@@ -28,6 +28,7 @@ test:linux:amd64:
- linux
- amd64
deckard:linux:amd64:
stage: test
script:
......@@ -44,6 +45,18 @@ deckard:linux:amd64:
- 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
......
FROM cznic/ubuntu:16.04
MAINTAINER Knot DNS <knot-dns@labs.nic.cz>
WORKDIR /root
CMD ["/bin/bash"]
# name: cznic/ubuntu-valgrind:16.04
# run ci tests with valgrind memory checks
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y valgrind
......@@ -37,7 +37,7 @@ $(1)_LIBS := $(tests_LIBS)
$(1)_DEPEND := $(tests_DEPEND)
$(call make_bin,$(1),tests)
$(1): $$($(1))
@$(preload_syms) $$<
@$(preload_syms) $(DEBUGGER) $$<
.PHONY: $(1)
endef
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment