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
33f02f55
Commit
33f02f55
authored
Oct 15, 2019
by
DIAZ Jerome
Committed by
GILLES Sebastien
Oct 29, 2019
Browse files
#1489 Added Valgrind script and corresponding stage for CI.
parent
fd126f1f
Changes
3
Show whitespace changes
Inline
Side-by-side
ExternalTools/Gitlab-CI/analysis.yml
View file @
33f02f55
valgrind
:
stage
:
analysis
image
:
registry.gitlab.inria.fr/morefem/analysistools/valgrind:latest
script
:
-
python Scripts/Tools/run_valgrind.py
dependencies
:
[]
artifacts
:
name
:
"
artifact_${CI_PROJECT_ID}_${CI_COMMIT_REF_SLUG}_${OS}-valgrind"
expire_in
:
2 days
when
:
always
# paths:
# - morefem-valgrind.xml
# only:
# - develop@morefem/corelibrary/morefem
# - /(sonarqube)/
cppcheck
:
stage
:
analysis
...
...
@@ -15,6 +31,7 @@ cppcheck:
-
develop@morefem/corelibrary/morefem
-
/(sonarqube)/
rats
:
stage
:
analysis
image
:
registry.gitlab.inria.fr/morefem/analysistools/rats:latest
...
...
ExternalTools/Gitlab-CI/gitlab-ci-no-macos.yml
View file @
33f02f55
include
:
-
local
:
'
/ExternalTools/Gitlab-CI/common.yml'
-
local
:
'
/ExternalTools/Gitlab-CI/analysis.yml'
build_ubuntu_gcc_debug_several_shared_libraries
:
extends
:
.build_template_linux
...
...
Scripts/Tools/run_valgrind.py
0 → 100644
View file @
33f02f55
import
os
import
sys
import
shutil
import
subprocess
if
__name__
==
"__main__"
:
morefem_source_dir
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
".."
,
".."
,
"Sources"
)
build_dir
=
os
.
path
.
join
(
morefem_source_dir
,
".."
,
"build_4_valgrind"
)
if
os
.
path
.
exists
(
build_dir
):
shutil
.
rmtree
(
build_dir
)
os
.
mkdir
(
build_dir
)
os
.
chdir
(
build_dir
)
cmd
=
(
"python"
,
\
"../cmake/Scripts/configure_cmake.py"
,
\
"--cache_file=../cmake/PreCache/linux.cmake"
,
\
"--cmake_args=
\"
-G Ninja
\"
"
,
\
"--install_directory=/opt"
)
subprocess
.
Popen
(
cmd
,
shell
=
False
).
communicate
()
cmd
=
"ninja"
subprocess
.
Popen
(
cmd
,
shell
=
True
).
communicate
()
# executables_dir = os.path.join(build_dir, "Sources")
#
# os.chdir(executables_dir)
cmd
=
"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 Sources/MoReFEMTestPetscMatrixOperations -i ${HOME}/Codes/MoReFEM/CoreLibrary/Sources/Test/ThirdParty/PETSc/MatrixOperations/demo.lua "
subprocess
.
Popen
(
cmd
,
shell
=
True
).
communicate
()
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