Salome HOME
Fix salome test when both py2 & py3 are available.
[modules/kernel.git] / src / LifeCycleCORBA_SWIG / Test / CTestTestfileInstall.cmake
1 # Copyright (C) 2015-2019  CEA/DEN, EDF R&D
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 SET(TEST_NAMES
21   LifeCycleCORBA_SWIGTest
22   testcontainermanager
23 #  TestLifeCycleCORBA_SWIG
24   )
25
26 IF(NOT WIN32)
27   FOREACH(tfile ${TEST_NAMES})
28     SET(TEST_NAME ${COMPONENT_NAME}_LC_${tfile})
29     ADD_TEST(${TEST_NAME} ${SALOME_TEST_DRIVER} ${TIMEOUT} ${tfile}.py)
30     SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}"
31       )
32   ENDFOREACH()
33
34   # resource manager test needs specific CatalogResources file in test directory
35   SET(TEST_NAME ${COMPONENT_NAME}_LC_testresourcemanager)
36   ADD_TEST(${TEST_NAME} ${SALOME_TEST_DRIVER} ${TIMEOUT} testresourcemanager.py)
37   SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}"
38                                     ENVIRONMENT "USER_CATALOG_RESOURCES_FILE=CatalogResources_resource.xml"
39                       )
40 ENDIF()