From: DUC ANH HOANG Date: Fri, 15 Jan 2021 17:11:02 +0000 (+0100) Subject: activate paramedmem test X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0f04c323fb5e097a5ff4352de3be9584ba06b0ce;p=tools%2Fmedcoupling.git activate paramedmem test --- diff --git a/src/CTestTestfileInstall.cmake b/src/CTestTestfileInstall.cmake index c50893a89..f42e11693 100644 --- a/src/CTestTestfileInstall.cmake +++ b/src/CTestTestfileInstall.cmake @@ -26,8 +26,8 @@ SUBDIRS(MEDCoupling_Swig) SUBDIRS(MEDLoader) SUBDIRS(MEDLoader_Swig) SUBDIRS(MEDPartitioner) -#SUBDIRS(ParaMEDMEM_Swig) -#SUBDIRS(ParaMEDMEMTest) +SUBDIRS(ParaMEDMEM_Swig) +SUBDIRS(ParaMEDMEMTest) SUBDIRS(MEDPartitioner_Swig) SUBDIRS(RENUMBER_Swig) SUBDIRS(PyWrapping) diff --git a/src/ParaMEDMEMTest/CMakeLists.txt b/src/ParaMEDMEMTest/CMakeLists.txt index 7e65d5cbe..1708ceeb1 100644 --- a/src/ParaMEDMEMTest/CMakeLists.txt +++ b/src/ParaMEDMEMTest/CMakeLists.txt @@ -150,3 +150,12 @@ SET(COMMON_HEADERS_HXX MPI2Connector.hxx ) INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${MEDCOUPLING_INSTALL_HEADERS}) + +# Application tests + +SET(TEST_INSTALL_DIRECTORY ${MEDCOUPLING_INSTALL_TESTS}/ParaMEDMEMTest) +INSTALL(TARGETS ${TESTSParaMEDMEM} DESTINATION ${TEST_INSTALL_DIRECTORY}) + +INSTALL(FILES CTestTestfileInstall.cmake + DESTINATION ${TEST_INSTALL_DIRECTORY} + RENAME CTestTestfile.cmake) diff --git a/src/ParaMEDMEMTest/CTestTestfileInstall.cmake b/src/ParaMEDMEMTest/CTestTestfileInstall.cmake new file mode 100644 index 000000000..3d6f5f9df --- /dev/null +++ b/src/ParaMEDMEMTest/CTestTestfileInstall.cmake @@ -0,0 +1,39 @@ +# Copyright (C) 2015-2020 CEA/DEN, EDF R&D +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# + +SET(TEST_NAMES + ParaMEDMEMTest +) + +SET(TEST_FILES + ParaMEDMEMTestMPI2_1 + ParaMEDMEMTestMPI2_2 + TestMPIAccess + TestMPIAccessDEC + TestParaMEDMEM + test_perf +) +FOREACH(tfile ${TEST_FILES}) + SET(TEST_NAME ${COMPONENT_NAME}_${TEST_NAMES}_${tfile}) + ADD_TEST(${TEST_NAME} ${tfile}) + SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES + LABELS "${COMPONENT_NAME}" + TIMEOUT ${TIMEOUT} + ) +ENDFOREACH() diff --git a/src/ParaMEDMEM_Swig/CMakeLists.txt b/src/ParaMEDMEM_Swig/CMakeLists.txt index 3b69239ef..95f5c31c6 100644 --- a/src/ParaMEDMEM_Swig/CMakeLists.txt +++ b/src/ParaMEDMEM_Swig/CMakeLists.txt @@ -71,3 +71,12 @@ INSTALL(FILES test_InterpKernelDEC.py test_NonCoincidentDEC.py test_StructuredCo SALOME_INSTALL_SCRIPTS(${CMAKE_CURRENT_BINARY_DIR}/ParaMEDMEM.py ${MEDCOUPLING_INSTALL_PYTHON} EXTRA_DPYS "${SWIG_MODULE_ParaMEDMEM_REAL_NAME}") INSTALL(FILES test_InterpKernelDEC.py test_NonCoincidentDEC.py test_StructuredCoincidentDEC.py DESTINATION ${MEDCOUPLING_INSTALL_SCRIPT_PYTHON}) + +# Application tests + +SET(TEST_INSTALL_DIRECTORY ${MEDCOUPLING_INSTALL_TESTS}/ParaMEDMEM_Swig) +INSTALL(FILES test_BasicOperation.py test_InterpKernelDEC.py test_NonCoincidentDEC.py test_StructuredCoincidentDEC.py DESTINATION ${TEST_INSTALL_DIRECTORY}) + +INSTALL(FILES CTestTestfileInstall.cmake + DESTINATION ${TEST_INSTALL_DIRECTORY} + RENAME CTestTestfile.cmake) diff --git a/src/ParaMEDMEM_Swig/CTestTestfileInstall.cmake b/src/ParaMEDMEM_Swig/CTestTestfileInstall.cmake new file mode 100644 index 000000000..b697e0e86 --- /dev/null +++ b/src/ParaMEDMEM_Swig/CTestTestfileInstall.cmake @@ -0,0 +1,38 @@ +# Copyright (C) 2015-2020 CEA/DEN, EDF R&D +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# + +SET(TEST_NAME + ParaMEDMEM_Swig +) +SET(TEST_FILES + test_BasicOperation + test_InterpKernelDEC + test_NonCoincidentDEC + test_StructuredCoincidentDEC +) + +FOREACH(tfile ${TEST_FILES}) + SET(TEST_NAME ${COMPONENT_NAME}_${TEST_NAME}_${tfile}) + ADD_TEST(${TEST_NAME} python ${tfile}.py) + SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES + LABELS "${COMPONENT_NAME}" + TIMEOUT ${TIMEOUT} + ENVIRONMENT "PYTHONPATH=../../bin:$ENV{PYTHONPATH}" + ) +ENDFOREACH()