Commit 113d362b authored by DIAZ Jerome's avatar DIAZ Jerome Committed by GILLES Sebastien
Browse files

#1489 First attempt at integrating valgrind memecheck.

parent fee6ee89
...@@ -3,6 +3,7 @@ stages: ...@@ -3,6 +3,7 @@ stages:
- check_warnings - check_warnings
- analysis - analysis
- generate_sonarqube - generate_sonarqube
- valgrind
# As suggested by https://blog.sparksuite.com/7-ways-to-speed-up-gitlab-ci-cd-times-29f60aab69f9 # As suggested by https://blog.sparksuite.com/7-ways-to-speed-up-gitlab-ci-cd-times-29f60aab69f9
variables: variables:
......
...@@ -62,7 +62,6 @@ class Configuration(): ...@@ -62,7 +62,6 @@ class Configuration():
print(' COMPILER: "{}"'.format(self.__compiler)) print(' COMPILER: "{}"'.format(self.__compiler))
print(' MODE: "{}"'.format(self.__mode)) print(' MODE: "{}"'.format(self.__mode))
print(' LIB_NATURE: "{}"'.format(self.__library_type)) print(' LIB_NATURE: "{}"'.format(self.__library_type))
print(' OS: "{}"'.format(self.__os))
print(' IS_ONLY_ONE_LIB: "{}"'.format(self.__is_one_library)) print(' IS_ONLY_ONE_LIB: "{}"'.format(self.__is_one_library))
......
...@@ -16,6 +16,18 @@ build_ubuntu_gcc_debug_several_shared_libraries: ...@@ -16,6 +16,18 @@ build_ubuntu_gcc_debug_several_shared_libraries:
OS: "ubuntu" OS: "ubuntu"
IS_ONLY_ONE_LIB: "False" IS_ONLY_ONE_LIB: "False"
valgrind_memcheck:
stage: valgrind
tags:
- ubuntu
- gcc
- debug
before_script:
- sudo apt install valgrind
script:
- cd ${HOME}/Codes/MoReFEM/CoreLibrary/build/Sources
- valgrind --error-exitcode=1 --log-file=memcheck_matrix_operations.txt --gen-suppressions=all --show-leak-kinds=all --show-reachable=yes --track-origins=yes --leak-check=full --suppressions=${HOME}/Codes/MoReFEM/CoreLibrary/ExternalTools/Valgrind/openmpi.suppr --suppressions=${HOME}/Codes/MoReFEM/CoreLibrary/ExternalTools/Valgrind/libgomp.suppr --suppressions=${HOME}/Codes/MoReFEM/CoreLibrary/ExternalTools/Valgrind/libc.suppr ./MoReFEMTestPetscMatrixOperations -i ${HOME}/Codes/MoReFEM/CoreLibrary/Sources/Test/ThirdParty/PETSc/MatrixOperations/demo.lua
check_ubuntu_gcc_debug_several_shared_libraries: check_ubuntu_gcc_debug_several_shared_libraries:
extends: .check_compilation_warning_template_docker extends: .check_compilation_warning_template_docker
tags: tags:
......
...@@ -207,7 +207,6 @@ namespace MoReFEM::TestNS::PetscNS::MatrixOperationsNS ...@@ -207,7 +207,6 @@ namespace MoReFEM::TestNS::PetscNS::MatrixOperationsNS
__FILE__, __LINE__, __FILE__, __LINE__,
Wrappers::Petsc::DoReuseMatrix::yes); Wrappers::Petsc::DoReuseMatrix::yes);
} }
{ {
IS rperm; IS rperm;
IS cperm; IS cperm;
......
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