From 84f55968720710d2279f0aacf24505a633bb2cd9 Mon Sep 17 00:00:00 2001 From: mpa Date: Fri, 6 Dec 2013 11:58:44 +0000 Subject: [PATCH] CMake: - modify test system for PARAVIS module --- test/CMakeLists.txt | 27 +++++++++++++-------------- test/VisuPrs/CMakeLists.txt | 8 +++++++- test/VisuPrs/Util/CMakeLists.txt | 11 +---------- 3 files changed, 21 insertions(+), 25 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 4cc1f0f2..7dc45d41 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -20,20 +20,19 @@ ADD_SUBDIRECTORY(VisuPrs) SET(_demo_files - demo_0_med.py - demo_1_med.py - demo_2_med.py - demo_3_med.py - demo_4_med.py - demo_5_med.py - demo_6_med.py - demo_7_med.py - demo_8_med.py - demo_9_med.py - demo_10_med.py - demo_11_med.py - demo_12_med.py - demo_13_med.py + demo0.py + demo1.py + demo2.py + demo3.py + demo4.py + demo5.py + demo6.py + demo7.py + demo8.py + demo9.py + demo10.py + demo11.py + demo12.py demo_14_med.py demo_15_med.py ) diff --git a/test/VisuPrs/CMakeLists.txt b/test/VisuPrs/CMakeLists.txt index 7e48950e..65f52494 100644 --- a/test/VisuPrs/CMakeLists.txt +++ b/test/VisuPrs/CMakeLists.txt @@ -17,7 +17,9 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -ADD_SUBDIRECTORY( +SALOME_GENERATE_TESTS_ENVIRONMENT(tests_env) + +SET(TEST_DIRECTORIES Util 2D_viewer 3D_viewer @@ -41,3 +43,7 @@ ADD_SUBDIRECTORY( imps dump_study ) + +FOREACH(test_dir ${TEST_DIRECTORIES}) + ADD_SUBDIRECTORY(${test_dir}) +ENDFOREACH() diff --git a/test/VisuPrs/Util/CMakeLists.txt b/test/VisuPrs/Util/CMakeLists.txt index ccb68ec8..73c593e0 100644 --- a/test/VisuPrs/Util/CMakeLists.txt +++ b/test/VisuPrs/Util/CMakeLists.txt @@ -22,13 +22,4 @@ SET(dist_testscript_DATA paravistesthelper.py ) -FOREACH(f ${dist_testscript_DATA}) - INSTALL(FILES ${f} DESTINATION bin/salome) - - INSTALL(CODE "SET(PYTHON_FILE ${f})") - INSTALL(CODE "SET(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})") - INSTALL(CODE "SET(DEST bin/salome)") - INSTALL(CODE "SET(PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE})") - INSTALL(SCRIPT ${KERNEL_ROOT_DIR}/salome_adm/cmake_files/deprecated/install_and_compile_python_file.cmake) - -ENDFOREACH(f ${dist_testscript_DATA}) +SALOME_INSTALL_SCRIPTS("${dist_testscript_DATA}" ${SALOME_INSTALL_SCRIPT_SCRIPTS}) -- 2.39.2