Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GILLES Sebastien
MoReFEM
Commits
1b76dead
Commit
1b76dead
authored
Oct 16, 2019
by
DIAZ Jerome
Committed by
GILLES Sebastien
Oct 29, 2019
Browse files
#1489 Extended the memcheck test to all ModelInstances.
parent
2c71fe9a
Changes
2
Show whitespace changes
Inline
Side-by-side
ExternalTools/Gitlab-CI/analysis.yml
View file @
1b76dead
...
...
@@ -14,8 +14,15 @@ valgrind:
expire_in
:
2 days
when
:
always
paths
:
-
build_4_valgrind/memcheck_matrix_operations.txt
-
build_4_valgrind/memcheck_elasticity.txt
-
memcheck_matrix_operations.txt
-
memcheck_elasticity.txt
-
memcheck_heat.txt
-
memcheck_hyperelasticity.txt
-
memcheck_laplacian.txt
-
memcheck_rivlin_cube.txt
-
memcheck_stokes.txt
after_script
:
-
rm -rf build_4_valgrind/
# only:
# - develop@morefem/corelibrary/morefem
# - /(sonarqube)/
...
...
Scripts/Tools/run_valgrind.sh
View file @
1b76dead
#!/bin/bash
# Assumes current path is MOREFEM_ROOT/build
# Assumes current path is MOREFEM_ROOT to use this script.
# Utility function used at the end of each Valgrind run.
function
printDone
()
{
echo
"Memcheck done for
$1
, output file
$2
written."
}
# arg1: executable, arg2: lua input, arg3: memcheck_output_file
function
runValgrind
()
{
valgrind
--error-exitcode
=
1
--log-file
=
$3
--gen-suppressions
=
all
--show-leak-kinds
=
all
--show-reachable
=
yes
--track-origins
=
yes
--leak-check
=
full
--errors-for-leak-kinds
=
all
--suppressions
=
../ExternalTools/Valgrind/openmpi.suppr
--suppressions
=
../ExternalTools/Valgrind/libgomp.suppr
--suppressions
=
../ExternalTools/Valgrind/libc.suppr
$1
-i
$2
-e
MOREFEM_RESULT_DIR
=
${
PWD
}
EXECUTABLE
=
"Sources/
$1
"
OUTPUT
=
"
${
MOREFEM_ROOT
}
/
$3
"
valgrind
--error-exitcode
=
1
--log-file
=
$OUTPUT
--gen-suppressions
=
all
--show-leak-kinds
=
all
--show-reachable
=
yes
--track-origins
=
yes
--leak-check
=
full
--errors-for-leak-kinds
=
all
--suppressions
=
../ExternalTools/Valgrind/openmpi.suppr
--suppressions
=
../ExternalTools/Valgrind/libgomp.suppr
--suppressions
=
../ExternalTools/Valgrind/libc.suppr
$EXECUTABLE
-i
$2
-e
MOREFEM_RESULT_DIR
=
${
PWD
}
printDone
$EXECUTABLE
$3
}
export
MOREFEM_ROOT
=
${
PWD
}
...
...
@@ -15,7 +27,16 @@ cd build_4_valgrind && python ../cmake/Scripts/configure_cmake.py --cache_file=.
ninja
runValgrind Sources/MoReFEMTestPetscMatrixOperations ../Sources/Test/ThirdParty/PETSc/MatrixOperations/demo.lua memcheck_matrix_operations.txt
runValgrind MoReFEMTestPetscMatrixOperations ../Sources/Test/ThirdParty/PETSc/MatrixOperations/demo.lua memcheck_matrix_operations.txt
runValgrind MoReFEM4Elasticity ../Sources/ModelInstances/Elasticity/demo_2d_binary.lua memcheck_elasticity.txt
runValgrind MoReFEM4Heat ../Sources/ModelInstances/Heat/demo_input_heat.lua memcheck_heat.txt
runValgrind MoReFEM4Hyperelasticity ../Sources/ModelInstances/Hyperelasticity/demo_input_hyperelasticity.lua memcheck_hyperelasticity.txt
runValgrind MoReFEM4Laplacian ../Sources/ModelInstances/Laplacian/demo_input_laplacian.lua memcheck_laplacian.txt
runValgrind
Sources/MoReFEM4Elasticity
../Sources/ModelInstances/
Elasticity/demo_2d_binary
.lua memcheck_
elasticity
.txt
runValgrind
MoReFEM4RivlinCube
../Sources/ModelInstances/
RivlinCube/demo_input_rivlin_cube_hexahedra
.lua memcheck_
rivlin_cube
.txt
runValgrind MoReFEM4Stokes ../Sources/ModelInstances/Stokes/demo.lua memcheck_stokes.txt
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment