Commit a1477e2f authored by Mihai Patrascoiu's avatar Mihai Patrascoiu

SPEC,MISC,CI: Add Leak Sanitizer suppression file in order to suppress known memory leaks

parent 1cdde233
......@@ -256,8 +256,9 @@ before_script:
<<: *k8s_before_script_template
script:
- ./eos-on-k8s/create-mgm.sh -i ${IMAGE_TAG} -n ${NAMESPACE}
- kubectl exec -n $NAMESPACE -i $(kubectl get pods -n $NAMESPACE --no-headers -o custom-columns=":metadata.name" -l app=eos-mgm1) -- eos-unit-tests
- kubectl exec -n $NAMESPACE -i $(kubectl get pods -n $NAMESPACE --no-headers -o custom-columns=":metadata.name" -l app=eos-mgm1) -- eos-fst-unit-tests
- if [[ "$CI_JOB_NAME" =~ "asan" ]]; then export LSAN_OPTIONS="suppressions=/var/eos/test/LeakSanitizer.supp" ; else export LSAN_OPTIONS="" ; fi
- kubectl exec -n $NAMESPACE -i $(kubectl get pods -n $NAMESPACE --no-headers -o custom-columns=":metadata.name" -l app=eos-mgm1) -- bash -c "LSAN_OPTIONS=${LSAN_OPTIONS} eos-unit-tests"
- kubectl exec -n $NAMESPACE -i $(kubectl get pods -n $NAMESPACE --no-headers -o custom-columns=":metadata.name" -l app=eos-mgm1) -- bash -c "LSAN_OPTIONS=${LSAN_OPTIONS} eos-fst-unit-tests"
<<: *k8s_after_script_template
.k8s_ns_unit_test_template: &k8s_ns_unit_test_template
......@@ -887,6 +888,7 @@ unit_test_asan:
<<: *unit_test_template
variables:
BUILD_NAME: cc7_asan
LSAN_OPTIONS: "suppressions=/var/eos/test/LeakSanitizer.supp" # Suppress known memory leaks
dependencies:
- build_cc7_asan
tags:
......
......@@ -1059,6 +1059,9 @@ Contains an instance and fuse test script and some test executables and test arc
%{_sbindir}/eos-ns-quarkdb-tests
%attr(444,daemon,daemon) %{_localstatedir}/eos/test/fuse/untar/untar.tgz
%attr(444,daemon,daemon) %{_localstatedir}/eos/test/fuse/untar/xrootd.tgz
%if %{?_with_asan:1}%{!?_with_asan:0}
%attr(644,daemon,daemon) %{_localstatedir}/eos/test/LeakSanitizer.supp
%endif
%if %{?_with_coverage:1}%{!?_with_coverage:0}
#-------------------------------------------------------------------------------
......
......@@ -69,6 +69,13 @@ install(FILES
DESTINATION /var/eos/test/fuse/untar/
PERMISSIONS OWNER_READ GROUP_READ WORLD_READ)
if (ASAN)
install(FILES
eos/test/LeakSanitizer.supp
DESTINATION /var/eos/test/
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
endif()
if( MacOSX )
install(FILES
eosd.conf
......
# Suppress known leak in XrdOfs object
leak:XrdOfs::XrdOfs()
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