Commit 77ad0485 authored by DIAZ Jerome's avatar DIAZ Jerome Committed by GILLES Sebastien
Browse files

#1489 Check that inducing a memory leak is seen by the CI test.

parent bfe9efcc
......@@ -3,21 +3,18 @@ valgrind:
image: registry.gitlab.inria.fr/morefem/analysistools/valgrind:latest
script:
- export MOREFEM_ROOT=${PWD}
- echo $MOREFEM_ROOT
- mkdir -p build_4_valgrind
- cd build_4_valgrind && python ../cmake/Scripts/configure_cmake.py --cache_file=../cmake/PreCache/linux.cmake --cmake_args="-G Ninja" --third_party_directory=/opt --mode="debug"
- ls ../Sources/Test/ThirdParty/PETSc/MatrixOperations
- ninja
- Sources/MoReFEM4Elasticity -i ../Sources/ModelInstances/Elasticity/demo_2d.lua -e MOREFEM_RESULT_DIR=${PWD}
- Sources/MoReFEMTestPetscMatrixOperations -i ../Sources/Test/ThirdParty/PETSc/MatrixOperations/demo.lua -e MOREFEM_RESULT_DIR=${PWD}
- 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=../ExternalTools/Valgrind/openmpi.suppr --suppressions=../ExternalTools/Valgrind/libgomp.suppr --suppressions=../ExternalTools/Valgrind/libc.suppr Sources/MoReFEMTestPetscMatrixOperations -i ../Sources/Test/ThirdParty/PETSc/MatrixOperations/demo.lua -e MOREFEM_RESULT_DIR=${PWD}
- 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=../ExternalTools/Valgrind/openmpi.suppr --suppressions=../ExternalTools/Valgrind/libgomp.suppr --suppressions=../ExternalTools/Valgrind/libc.suppr Sources/MoReFEMTestPetscMatrixOperations -i ../Sources/Test/ThirdParty/PETSc/MatrixOperations/demo.lua -e MOREFEM_RESULT_DIR=${PWD}
- echo $MOREFEM_RESULT_DIR
dependencies: []
artifacts:
name: "artifact_${CI_PROJECT_ID}_${CI_COMMIT_REF_SLUG}_${OS}-valgrind"
expire_in: 2 days
when: always
# paths:
# - morefem-valgrind.xml
paths:
- memcheck_matrix_operations.txt
# only:
# - develop@morefem/corelibrary/morefem
# - /(sonarqube)/
......
......@@ -216,8 +216,8 @@ namespace MoReFEM::TestNS::PetscNS::MatrixOperationsNS
&rperm,
&cperm,
__FILE__, __LINE__);
ISDestroy(&rperm);
ISDestroy(&cperm);
// ISDestroy(&rperm);
// ISDestroy(&cperm);
}
// \todo
......
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