DESTINATION ${KERNEL_TEST_DIR}/concurrentSession
RENAME CTestTestfile.cmake)
-INSTALL(FILES ${scripts}
+INSTALL(PROGRAMS ${scripts}
DESTINATION ${KERNEL_TEST_DIR}/concurrentSession)
FOREACH(tfile ${TEST_NAMES})
SET(TEST_NAME ${COMPONENT_NAME}_SALOME_CONCURRENT_${tfile})
- ADD_TEST(${TEST_NAME} python ${tfile}.py)
+ ADD_TEST(${TEST_NAME} ${tfile}.py)
SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
ENDFOREACH()
DESTINATION ${KERNEL_TEST_DIR}/salomeCommand
RENAME CTestTestfile.cmake)
-INSTALL(FILES ${scripts}
+INSTALL(PROGRAMS ${scripts}
DESTINATION ${KERNEL_TEST_DIR}/salomeCommand)
FOREACH(tfile ${TEST_NAMES})
SET(TEST_NAME ${COMPONENT_NAME}_SALOME_COMMAND_${tfile})
- ADD_TEST(${TEST_NAME} python ${tfile}.py)
+ ADD_TEST(${TEST_NAME} ${tfile}.py)
SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
ENDFOREACH()
DESTINATION ${KERNEL_TEST_DIR}/salomeInstance
RENAME CTestTestfile.cmake)
-INSTALL(FILES ${scripts}
+INSTALL(PROGRAMS ${scripts}
DESTINATION ${KERNEL_TEST_DIR}/salomeInstance)
FOREACH(tfile ${TEST_NAMES})
SET(TEST_NAME ${COMPONENT_NAME}_SALOME_INSTANCE_${tfile})
- ADD_TEST(${TEST_NAME} python ${tfile}.py)
+ ADD_TEST(${TEST_NAME} ${tfile}.py)
SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
ENDFOREACH()
DESTINATION ${KERNEL_TEST_DIR}/salomeTest
RENAME CTestTestfile.cmake)
-INSTALL(FILES ${scripts}
+INSTALL(PROGRAMS ${scripts}
DESTINATION ${KERNEL_TEST_DIR}/salomeTest)
CALLDIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
echo ABSOLUTE_APPLI_PATH: $ABSOLUTE_APPLI_PATH
-$ABSOLUTE_APPLI_PATH/salome shell -- python ${CALLDIR}/salome_test.py
+$ABSOLUTE_APPLI_PATH/salome shell -- python3 ${CALLDIR}/salome_test.py
IF(NOT WIN32)
SET(TEST_NAME ${COMPONENT_NAME}_KernelHelpers)
- ADD_TEST(${TEST_NAME} python ${SALOME_TEST_DRIVER} ${TIMEOUT} TestKernelHelpers.py)
+ ADD_TEST(${TEST_NAME} ${SALOME_TEST_DRIVER} ${TIMEOUT} TestKernelHelpers.py)
SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
LABELS "${COMPONENT_NAME}"
ENVIRONMENT "LD_LIBRARY_PATH=${KERNEL_TEST_LIB}:$ENV{LD_LIBRARY_PATH}"
IF(NOT WIN32)
SET(TEST_NAME ${COMPONENT_NAME}_Launcher)
- ADD_TEST(${TEST_NAME} python ${SALOME_TEST_DRIVER} 2000 test_launcher.py)
+ ADD_TEST(${TEST_NAME} ${SALOME_TEST_DRIVER} 2000 test_launcher.py)
SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}"
# TIMEOUT 500
)
SET(TEST_NAME ${COMPONENT_NAME}_StressLauncher)
- ADD_TEST(${TEST_NAME} python ${SALOME_TEST_DRIVER} 2000 ./test_stress.sh)
+ ADD_TEST(${TEST_NAME} ${SALOME_TEST_DRIVER} 2000 ./test_stress.sh)
SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}"
# TIMEOUT 500
)
pid_launcher=''
for i in {1..500}
do
- python launcher_use_case.py $WORKDIR 2> $WORKDIR/log$i.err &
+ ./launcher_use_case.py $WORKDIR 2> $WORKDIR/log$i.err &
pid_launcher=$pid_launcher" "$!
done
exit_code=0
# ${CMAKE_CURRENT_SOURCE_DIR}/test_launcher.py
# -d KERNEL_ROOT_DIR=${CMAKE_INSTALL_PREFIX}
# )
- INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/test_swig_launcher.py
+ INSTALL(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/test_swig_launcher.py
DESTINATION ${KERNEL_TEST_DIR}/Launcher_SWIG)
INSTALL(FILES CTestTestfileInstall.cmake
IF(NOT WIN32)
SET(TEST_NAME ${COMPONENT_NAME}_Launcher_SWIG)
- ADD_TEST(${TEST_NAME} python test_swig_launcher.py)
+ ADD_TEST(${TEST_NAME} test_swig_launcher.py)
SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}"
# TIMEOUT 500
)
IF(NOT WIN32)
SET(TEST_NAME ${COMPONENT_NAME}_LifeCycleCORBA)
- ADD_TEST(${TEST_NAME} python ${SALOME_TEST_DRIVER} ${TIMEOUT} TestLifeCycleCORBA.py)
+ ADD_TEST(${TEST_NAME} ${SALOME_TEST_DRIVER} ${TIMEOUT} TestLifeCycleCORBA.py)
SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
LABELS "${COMPONENT_NAME}"
ENVIRONMENT "LD_LIBRARY_PATH=${KERNEL_TEST_LIB}:$ENV{LD_LIBRARY_PATH}"
IF(NOT WIN32)
FOREACH(tfile ${TEST_NAMES})
SET(TEST_NAME ${COMPONENT_NAME}_LC_${tfile})
- ADD_TEST(${TEST_NAME} python ${SALOME_TEST_DRIVER} ${TIMEOUT} ${tfile}.py)
+ ADD_TEST(${TEST_NAME} ${SALOME_TEST_DRIVER} ${TIMEOUT} ${tfile}.py)
SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}"
)
ENDFOREACH()
# resource manager test needs specific CatalogResources file in test directory
SET(TEST_NAME ${COMPONENT_NAME}_LC_testresourcemanager)
- ADD_TEST(${TEST_NAME} python ${SALOME_TEST_DRIVER} ${TIMEOUT} testresourcemanager.py)
+ ADD_TEST(${TEST_NAME} ${SALOME_TEST_DRIVER} ${TIMEOUT} testresourcemanager.py)
SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}"
ENVIRONMENT "USER_CATALOG_RESOURCES_FILE=CatalogResources_resource.xml"
)
IF(NOT WIN32)
SET(TEST_NAME ${COMPONENT_NAME}_NamingService)
- ADD_TEST(${TEST_NAME} python ${SALOME_TEST_DRIVER} ${TIMEOUT} TestNamingService.py)
+ ADD_TEST(${TEST_NAME} ${SALOME_TEST_DRIVER} ${TIMEOUT} TestNamingService.py)
SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
LABELS "${COMPONENT_NAME}"
ENVIRONMENT "LD_LIBRARY_PATH=${KERNEL_TEST_LIB}:$ENV{LD_LIBRARY_PATH}"
IF(NOT WIN32)
SET(TEST_NAME ${COMPONENT_NAME}_SALOMEDSImpl)
- ADD_TEST(${TEST_NAME} python ${SALOME_TEST_DRIVER} ${TIMEOUT} TestSALOMEDSImpl.py)
+ ADD_TEST(${TEST_NAME} ${SALOME_TEST_DRIVER} ${TIMEOUT} TestSALOMEDSImpl.py)
SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
LABELS "${COMPONENT_NAME}"
ENVIRONMENT "LD_LIBRARY_PATH=${KERNEL_TEST_LIB}:$ENV{LD_LIBRARY_PATH}"
IF(NOT WIN32)
SET(TEST_NAME ${COMPONENT_NAME}_LocalTrace)
- ADD_TEST(${TEST_NAME} python ${SALOME_TEST_DRIVER} ${TIMEOUT} TestSALOMELocalTrace.py)
+ ADD_TEST(${TEST_NAME} ${SALOME_TEST_DRIVER} ${TIMEOUT} TestSALOMELocalTrace.py)
SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
LABELS "${COMPONENT_NAME}"
ENVIRONMENT "LD_LIBRARY_PATH=${KERNEL_TEST_LIB}:$ENV{LD_LIBRARY_PATH}"
IF(NOT WIN32)
SET(TEST_NAME ${COMPONENT_NAME}_SalomeSDS)
- ADD_TEST(${TEST_NAME} python ${SALOME_TEST_DRIVER} ${TIMEOUT} TestSalomeSDS.py)
+ ADD_TEST(${TEST_NAME} ${SALOME_TEST_DRIVER} ${TIMEOUT} TestSalomeSDS.py)
SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" ENVIRONMENT "PYTHONPATH=${KERNEL_TEST_LIB}:$ENV{PYTHONPATH}")
ENDIF(NOT WIN32)
INSTALL(TARGETS TestSALOMETraceCollector DESTINATION ${LOCAL_TEST_DIR})
# Executable scripts to be installed
-INSTALL(FILES TestSALOMETraceCollector.py DESTINATION ${LOCAL_TEST_DIR})
+INSTALL(PROGRAMS TestSALOMETraceCollector.py DESTINATION ${LOCAL_TEST_DIR})
FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${LOCAL_TEST_DIR})
INSTALL(FILES CTestTestfileInstall.cmake
DESTINATION ${LOCAL_TEST_DIR}
- RENAME CTestTestfile.cmake)
\ No newline at end of file
+ RENAME CTestTestfile.cmake)
IF(NOT WIN32)
SET(TEST_NAME ${COMPONENT_NAME}_SALOMETraceCollector)
- ADD_TEST(${TEST_NAME} python ${SALOME_TEST_DRIVER} ${TIMEOUT} TestSALOMETraceCollector.py)
+ ADD_TEST(${TEST_NAME} ${SALOME_TEST_DRIVER} ${TIMEOUT} TestSALOMETraceCollector.py)
SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
LABELS "${COMPONENT_NAME}"
ENVIRONMENT "LD_LIBRARY_PATH=${KERNEL_TEST_LIB}:$ENV{LD_LIBRARY_PATH}"
+#! /usr/bin/env python3
# -*- coding: iso-8859-1 -*-
# Copyright (C) 2007-2019 CEA/DEN, EDF R&D, OPEN CASCADE
#
# Executable scripts to be installed
SET(LOCAL_TEST_DIR ${KERNEL_TEST_DIR}/UnitTests)
-INSTALL(FILES UnitTests.py DESTINATION ${LOCAL_TEST_DIR})
+INSTALL(PROGRAMS UnitTests.py DESTINATION ${LOCAL_TEST_DIR})
# ===============================================================
# Executables targets
INSTALL(FILES CTestTestfileInstall.cmake
DESTINATION ${LOCAL_TEST_DIR}
- RENAME CTestTestfile.cmake)
\ No newline at end of file
+ RENAME CTestTestfile.cmake)
IF(NOT WIN32)
SET(TEST_NAME ${COMPONENT_NAME}_UnitTests)
- ADD_TEST(${TEST_NAME} python ${SALOME_TEST_DRIVER} ${TIMEOUT} UnitTests.py)
+ ADD_TEST(${TEST_NAME} ${SALOME_TEST_DRIVER} ${TIMEOUT} UnitTests.py)
SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
LABELS "${COMPONENT_NAME}"
ENVIRONMENT "LD_LIBRARY_PATH=${KERNEL_TEST_LIB}:$ENV{LD_LIBRARY_PATH}"
+#! /usr/bin/env python3
# -*- coding: iso-8859-1 -*-
# Copyright (C) 2007-2019 CEA/DEN, EDF R&D, OPEN CASCADE
#
IF(NOT WIN32)
SET(TEST_NAME ${COMPONENT_NAME}_Utils)
- ADD_TEST(${TEST_NAME} python ${SALOME_TEST_DRIVER} ${TIMEOUT} TestUtils.py)
+ ADD_TEST(${TEST_NAME} ${SALOME_TEST_DRIVER} ${TIMEOUT} TestUtils.py)
SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
LABELS "${COMPONENT_NAME}"
ENVIRONMENT "LD_LIBRARY_PATH=${KERNEL_TEST_LIB}:$ENV{LD_LIBRARY_PATH}"