From 59581647c3a85a510b668a1c801283da0365cc87 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=A0t=C4=9Bp=C3=A1n=20Kotek?= Date: Mon, 18 Sep 2017 15:23:35 +0200 Subject: [PATCH] Check deckard with valgrind during CI refs #227 --- .gitlab-ci.yml | 20 ++++++++++++++++++++ ci/Dockerfile | 3 +++ 2 files changed, 23 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bc5dcbd57..e1606fdd7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -40,6 +40,26 @@ deckard:linux:amd64: - linux - amd64 + +deckard:linux:amd64:valgrind: + stage: test + script: + - export PREFIX=$(pwd)/.local + - export LD_LIBRARY_PATH=$PREFIX/lib + - apt purge -y python-dnspython python3-dnspython + - apt update + - apt install -y python3-jinja2 python3-pip python3-yaml libffi-dev libaugeas-dev + - pip3 install --upgrade pip + - pip3 install --user dnspython python-augeas + - cd tests/deckard && DAEMON=valgrind ADDITIONAL="--leak-check=full --trace-children=yes --quiet --suppressions=/lj.supp $PREFIX/sbin/kresd" MAKEFLAGS="-j $(nproc) --keep-going" make + dependencies: + - build:linux:amd64 + tags: + - docker + - linux + - amd64 + + test:linux:amd64:valgrind: stage: test script: diff --git a/ci/Dockerfile b/ci/Dockerfile index 712e9163c..04303cf27 100644 --- a/ci/Dockerfile +++ b/ci/Dockerfile @@ -34,3 +34,6 @@ RUN rm -rf respdiff.zip resolver-benchmarking* #build knot RUN git clone https://gitlab.labs.nic.cz/knot/knot-dns.git /tmp/knot RUN cd /tmp/knot && autoreconf -if && ./configure && make && make install && ldconfig + +#prepare for valgrind +RUN wget https://raw.githubusercontent.com/LuaDist/luajit/2.0.3/src/lj.supp -O /lj.supp -- 2.47.2