Salome HOME
updated copyright message
[modules/yacs.git] / src / py2yacs / Test / CTestTestfileInstall.cmake
index a98d11d52c43dd0592560a06d600296aace03dbf..6ff7e29cf72b6a2460fb7a6c3788939ba14b8d34 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2012-2016  CEA/DEN, EDF R&D
+# Copyright (C) 2012-2023  CEA, EDF
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
 
 IF(NOT WIN32)
   SET(TEST_NAME ${COMPONENT_NAME}_Py2YacsTest)
-  # No need of a salome session for this test
-  ADD_TEST(${TEST_NAME} python ${SALOME_TEST_DRIVER} ${TIMEOUT} ./TestPy2yacs)
-  #ADD_TEST(${TEST_NAME} TestPy2yacs)
+  # Need a salome session for this test
+  ADD_TEST(${TEST_NAME} ./TestPy2yacs)
   SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
                                     LABELS "${COMPONENT_NAME}"
+                                    ENVIRONMENT "SALOME_EMB_SERVANT=1"
                       )
 
+  SET(TEST_NAME ${COMPONENT_NAME}_PyDecorator)
+  ADD_TEST(${TEST_NAME} testDeco.py)
+  SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
+                                    LABELS "${COMPONENT_NAME}"
+                                    ENVIRONMENT "SALOME_EMB_SERVANT=1"
+                      )
 ENDIF()