Une MAJ de sécurité est nécessaire sur notre version actuelle. Elle sera effectuée lundi 02/08 entre 12h30 et 13h. L'interruption de service devrait durer quelques minutes (probablement moins de 5 minutes).

Commit d310b3c3 authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

#177 Valgrind / CI: provide a template to run several Valgrind tests (all...

#177 Valgrind / CI: provide a template to run several Valgrind tests (all basic models + one for PETSc).
parent 400dd999
valgrind-elasticity:
.template_valgrind: &template_valgrind
stage: valgrind
image: registry.gitlab.inria.fr/morefem/analysistools/valgrind:latest
script:
- mkdir -p build
- cd build && python ../Scripts/CI/Valgrind/run_valgrind_elasticity.py
- cd build && python ../Scripts/CI/Valgrind/run_valgrind_${MODEL_NAME}.py
dependencies: []
cache:
key: "cache_${CI_PROJECT_ID}_${CI_COMMIT_REF_SLUG}_elasticity"
key: "cache_${CI_PROJECT_ID}_${CI_COMMIT_REF_SLUG}_${MODEL_NAME}"
untracked: true
paths:
- build
artifacts:
name: "artifact_${CI_PROJECT_ID}_${CI_COMMIT_REF_SLUG}_${OS}-valgrind-elasticity"
name: "artifact_${CI_PROJECT_ID}_${CI_COMMIT_REF_SLUG}_${OS}-valgrind-${MODEL_NAME}"
expire_in: 2 days
when: always
paths:
- memcheck_elasticity.txt
# after_script:
# - rm -rf build4valgrind/
- memcheck_${MODEL_NAME}.txt
only:
- develop@morefem/corelibrary/morefem
- /(valgrind)/
allow_failure: true
allow_failure: true
valgrind-elasticity:
extends: .template_valgrind
variables:
MODEL_NAME: "elasticity"
valgrind-heat:
extends: .template_valgrind
variables:
MODEL_NAME: "heat"
valgrind-hyperelasticity:
extends: .template_valgrind
variables:
MODEL_NAME: "hyperelasticity"
valgrind-laplacian:
extends: .template_valgrind
variables:
MODEL_NAME: "laplacian"
valgrind-rivlin_cube:
extends: .template_valgrind
variables:
MODEL_NAME: "rivlin_cube"
valgrind-stokes:
extends: .template_valgrind
variables:
MODEL_NAME: "stokes"
valgrind-test_matrix_operations:
extends: .template_valgrind
variables:
MODEL_NAME: "test_matrix_operations"
\ No newline at end of file
import os
from run_valgrind_tools import MoReFEMRootDir, RunValgrind
if __name__ == "__main__":
morefem_root_dir = MoReFEMRootDir()
morefem_model_instances_dir = os.path.join(morefem_root_dir, "Sources", "ModelInstances")
lua_file = os.path.join(morefem_model_instances_dir, "Heat", "demo_input_heat.lua")
#
RunValgrind("Sources/MoReFEM4Elasticity", lua_file, os.path.join(morefem_root_dir, "memcheck_heat.txt"))
import os
from run_valgrind_tools import MoReFEMRootDir, RunValgrind
if __name__ == "__main__":
morefem_root_dir = MoReFEMRootDir()
morefem_model_instances_dir = os.path.join(morefem_root_dir, "Sources", "ModelInstances")
lua_file = os.path.join(morefem_model_instances_dir, "Hyperelasticity", "demo_input_hyperelasticity.lua")
#
RunValgrind("Sources/MoReFEM4Hyperelasticity", lua_file, os.path.join(morefem_root_dir, "memcheck_hyperelasticity.txt"))
import os
from run_valgrind_tools import MoReFEMRootDir, RunValgrind
if __name__ == "__main__":
morefem_root_dir = MoReFEMRootDir()
morefem_model_instances_dir = os.path.join(morefem_root_dir, "Sources", "ModelInstances")
lua_file = os.path.join(morefem_model_instances_dir, "Laplacian", "demo_input_laplacian.lua")
#
RunValgrind("Sources/MoReFEM4Laplacian", lua_file, os.path.join(morefem_root_dir, "memcheck_laplacian.txt"))
import os
from run_valgrind_tools import MoReFEMRootDir, RunValgrind
if __name__ == "__main__":
morefem_root_dir = MoReFEMRootDir()
morefem_model_instances_dir = os.path.join(morefem_root_dir, "Sources", "ModelInstances")
lua_file = os.path.join(morefem_model_instances_dir, "RivlinCube", "demo_input_rivlin_cube_hexahedra.lua")
RunValgrind("Sources/MoReFEM4RivlinCube", lua_file, os.path.join(morefem_root_dir, "memcheck_rivlin_cube.txt"))
import os
from run_valgrind_tools import MoReFEMRootDir, RunValgrind
if __name__ == "__main__":
morefem_root_dir = MoReFEMRootDir()
morefem_model_instances_dir = os.path.join(morefem_root_dir, "Sources", "ModelInstances")
lua_file = os.path.join(morefem_model_instances_dir, "Stokes", "demo.lua")
RunValgrind("Sources/MoReFEM4Stokes", lua_file, os.path.join(morefem_root_dir, "memcheck_stokes.txt"))
import os
from run_valgrind_tools import MoReFEMRootDir, RunValgrind
if __name__ == "__main__":
morefem_root_dir = MoReFEMRootDir()
lua_file = os.path.join(morefem_root_dir, "Sources", "Test", "ThirdParty", "PETSc", "MatrixOperations", "demo.lua")
RunValgrind("Sources/MoReFEMTestPetscMatrixOperations", lua_file, os.path.join(morefem_root_dir, "memcheck_test_matrix_operations.txt"))
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