From 6398f22526303343193a18e514602f1af6fb29cb Mon Sep 17 00:00:00 2001 From: Nikolai Kondrashov Date: Thu, 4 Sep 2014 14:04:15 +0300 Subject: CI: Add Valgrind suppression support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add an empty Valgrind suppressions file, use it when invoking Valgrind. This prepares for addition of Valgrind suppressions for current false positives and issues that cannot be fixed, preparing for enforcing Valgrind check. Make Valgrind output a suppression for every error and make it output used suppression names and counts at the end of each run. This simplifies discovery and addition of new suppressions and removal of unused ones. Related to https://fedorahosted.org/sssd/ticket/2428 Reviewed-by: Lukáš Slebodník --- contrib/ci/run | 8 ++++++-- contrib/ci/sssd.supp | 9 +++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 contrib/ci/sssd.supp (limited to 'contrib') diff --git a/contrib/ci/run b/contrib/ci/run index f5f84c448..68ec1aab4 100755 --- a/contrib/ci/run +++ b/contrib/ci/run @@ -18,7 +18,8 @@ # along with this program. If not, see . set -o nounset -o pipefail -o errexit -export PATH=`dirname "\`readlink -f \"\$0\"\`"`:$PATH +declare -r CI_DIR=`dirname "\`readlink -f \"\$0\"\`"` +export PATH=$CI_DIR:$PATH export LC_ALL=C . deps.sh @@ -207,7 +208,10 @@ function build_debug() --vgdb=no \ --trace-children=yes \ --trace-children-skip='*/bin/*,*/sbin/*' \ - --leak-check=full || + --leak-check=full \ + --gen-suppressions=all \ + --suppressions="$CI_DIR/sssd.supp" \ + --verbose || status=$? mv "$test_dir" ci-test-dir diff --git a/contrib/ci/sssd.supp b/contrib/ci/sssd.supp new file mode 100644 index 000000000..d2541e895 --- /dev/null +++ b/contrib/ci/sssd.supp @@ -0,0 +1,9 @@ +# +# Valgrind suppression patterns +# +# See an introduction to suppressions in Valgrind manual: +# http://valgrind.org/docs/manual/manual-core.html#manual-core.suppress +# +# Each suppression name here must start with "sssd-" to differentiate it from +# suppressions maintained elsewhere. +# -- cgit