]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Adding the old tests to "make tests" procedure (first step).
authorOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Thu, 18 Dec 2014 09:33:22 +0000 (10:33 +0100)
committerOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Thu, 18 Dec 2014 09:33:22 +0000 (10:33 +0100)
src/Launcher/Test/CMakeLists.txt
src/NamingService/Test/CMakeLists.txt
src/NamingService/Test/TestNamingService.py
src/SALOMETraceCollector/Test/CMakeLists.txt
src/SALOMETraceCollector/Test/TestSALOMETraceCollector.py
src/UnitTests/CMakeLists.txt

index 67563f7a11f768d0972447e53439bcfeae89780f..a993f1d7f41887e16274fd1f5d4d6f2568592877 100644 (file)
 
 # --- rules ---
 
+SET(py_SCRIPTS
+    test_launcher.py
+)
+SALOME_INSTALL_SCRIPTS(${py_SCRIPTS} ${SALOME_INSTALL_SCRIPT_SCRIPTS}/Tests)
+
 IF(NOT WIN32)
   ADD_TEST(NAME SalomeLauncher
-           COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/../../UnitTests/prepare_test.py
-           ${CMAKE_CURRENT_SOURCE_DIR}/test_launcher.py
+           COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_SCRIPT_SCRIPTS}/Tests/prepare_test.py
+           ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_SCRIPT_SCRIPTS}/Tests/test_launcher.py
            -d KERNEL_ROOT_DIR=${CMAKE_INSTALL_PREFIX}
           )
 ENDIF()
index 1a8d5de47224ca43d2de361637d9ec12ed186b2d..4a61d516037bba89cfe2b99eeff728ab7dde71b3 100755 (executable)
@@ -71,3 +71,11 @@ SALOME_INSTALL_SCRIPTS(TestNamingService.py ${SALOME_INSTALL_SCRIPT_PYTHON})
 
 FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
 INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${SALOME_INSTALL_HEADERS})
+
+IF(NOT WIN32)
+  ADD_TEST(NAME NamingService
+           COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_SCRIPT_SCRIPTS}/Tests/prepare_test.py
+           ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_SCRIPT_PYTHON}/TestNamingService.py
+           -d KERNEL_ROOT_DIR=${CMAKE_INSTALL_PREFIX}
+          )
+ENDIF()
index ff365a9ab3d52ecf2ced6551ce8b02aa949f41c2..4fdf45c52eeed12b80ded51a8c4ae545c8649ceb 100644 (file)
@@ -59,3 +59,4 @@ ret = os.spawnvp(os.P_WAIT, command[0], command)
 # kill Test process
 
 TestKiller.killProcess(runSalome.process_id)
+exit(ret)
\ No newline at end of file
index c86da30ed8d2edcda592955e192d2c4366a096f8..ae530f1d76f30d2aa843ca63ed069c3437c8fa0c 100755 (executable)
@@ -51,3 +51,11 @@ SALOME_INSTALL_SCRIPTS(TestSALOMETraceCollector.py ${SALOME_INSTALL_SCRIPT_PYTHO
 
 FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
 INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${SALOME_INSTALL_HEADERS})
+
+IF(NOT WIN32)
+  ADD_TEST(NAME TraceCollector
+           COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_SCRIPT_SCRIPTS}/Tests/prepare_test.py
+           ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_SCRIPT_PYTHON}/TestSALOMETraceCollector.py
+           -d KERNEL_ROOT_DIR=${CMAKE_INSTALL_PREFIX}
+          )
+ENDIF()
index 0078e1d5aafa4261215111e9042f9f8d082f8808..04800de65375f439c8a060ca83316bc2d75bad46 100644 (file)
@@ -49,3 +49,4 @@ ret = os.spawnvp(os.P_WAIT, command[0], command)
 # kill Test process 
 
 TestKiller.killProcess(runSalome.process_id)
+exit(ret)
\ No newline at end of file
index b891402f22ea8eb7f7431b1e192db57898830b6f..158be534d9854d722cf11efd5e8f12b76bafb663 100755 (executable)
@@ -32,7 +32,13 @@ INCLUDE_DIRECTORIES(
 # ===============================================================
 
 # Executable scripts to be installed
+SET(py_SCRIPTS
+    UnitTests.py
+    prepare_test.py
+)
+
 SALOME_INSTALL_SCRIPTS(UnitTests.py ${SALOME_INSTALL_SCRIPT_SCRIPTS})
+SALOME_INSTALL_SCRIPTS(prepare_test.py ${SALOME_INSTALL_SCRIPT_SCRIPTS}/Tests)
 
 # ===============================================================
 # Executables targets