Commit 32e405ab authored by GILLES Sebastien's avatar GILLES Sebastien

#1541 Now that TestMatrixOperation is a full-fledged test, we no longer need...

#1541 Now that TestMatrixOperation is a full-fledged test, we no longer need to run Valgrind over it.
parent f15b71e5
......@@ -81,13 +81,4 @@ valgrind-stokes:
- fedora
- clang
- release
valgrind-test_matrix_operations:
extends: .template_valgrind
variables:
MODEL_NAME: "test_matrix_operations"
tags:
- large
- qlf-ci.inria.fr
\ No newline at end of file
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"), is_model = False)
......@@ -19,15 +19,13 @@ class RunValgrind:
\param[in] executable Executable to compile (e.g. MoReFEM4Elasticity).
\param[in] lua_file Lua file with the data required to run the model.
\param[in] output File in which output of the Valgrind analysis is written.
\param[in] is_model True if a model is involved, False otherwise.
"""
def __init__(self, executable, lua_file, output, is_model = True):
def __init__(self, executable, lua_file, output):
self.__executable = executable
self.__lua_file = lua_file
self.__output = output
self.__morefem_root_dir = MoReFEMRootDir()
self.__is_model = is_model
try:
self._callCMake()
......@@ -77,10 +75,10 @@ class RunValgrind:
"-i",
self.__lua_file,
"-e",
"MOREFEM_RESULT_DIR=Results"]
if self.__is_model:
cmd.append("--overwrite_directory")
"MOREFEM_RESULT_DIR=Results",
"-e",
"MOREFEM_PREPARTITIONED_DATA_DIR=PrepartitionedData",
"--overwrite_directory"]
try:
subprocess.run(cmd, shell = False).check_returncode()
......
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