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:
- check_warnings
- analysis
- generate_sonarqube
- valgrind
# As suggested by https://blog.sparksuite.com/7-ways-to-speed-up-gitlab-ci-cd-times-29f60aab69f9
variables:
......
......@@ -62,7 +62,6 @@ class Configuration():
print(' COMPILER: "{}"'.format(self.__compiler))
print(' MODE: "{}"'.format(self.__mode))
print(' LIB_NATURE: "{}"'.format(self.__library_type))
print(' OS: "{}"'.format(self.__os))
print(' IS_ONLY_ONE_LIB: "{}"'.format(self.__is_one_library))
......@@ -113,4 +112,4 @@ if __name__ == "__main__":
for config in configuration_list:
config.Print(do_define_tags)
print("\n")
\ No newline at end of file
print("\n")
......@@ -16,6 +16,18 @@ build_ubuntu_gcc_debug_several_shared_libraries:
OS: "ubuntu"
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:
extends: .check_compilation_warning_template_docker
tags:
......
......@@ -207,7 +207,6 @@ namespace MoReFEM::TestNS::PetscNS::MatrixOperationsNS
__FILE__, __LINE__,
Wrappers::Petsc::DoReuseMatrix::yes);
}
{
IS rperm;
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