]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
bug fix
authoraguerre <aguerre>
Fri, 6 Sep 2013 15:26:30 +0000 (15:26 +0000)
committeraguerre <aguerre>
Fri, 6 Sep 2013 15:26:30 +0000 (15:26 +0000)
bin/appliskel/tests/concurrentSession/CMakeLists.txt

index 59df15a29801543a0fca75aa9040798f141788e3..9c865f91af9f807f18772cea7501367c60da7c87 100644 (file)
@@ -23,20 +23,16 @@ ENABLE_TESTING()
 # define environment for running tests
 SET(PYTHON_VERSION ${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR})
 
-SET(KERNEL_ROOT_DIR $ENV{KERNEL_ROOT_DIR} CACHE PATH "Path to the Salome KERNEL")
-IF(NOT EXISTS ${KERNEL_ROOT_DIR})
-  MESSAGE(FATAL_ERROR "KERNEL_ROOT_DIR undefined")
-ENDIF(NOT EXISTS ${KERNEL_ROOT_DIR})
-
-SET(THIS_PYTHONPATH $ENV{KERNEL_ROOT_DIR}/bin/salome:$ENV{KERNEL_ROOT_DIR}/lib/python$ENV{PYTHON_VERSION}/site-packages/salome:$ENV{KERNEL_ROOT_DIR}/lib64/python$ENV{PYTHON_VERSION}/site-packages/salome:$ENV{PYTHONPATH})
-SET(THIS_LD_LIBRARY_PATH $ENV{KERNEL_ROOT_DIR}/lib/salome:$ENV{LD_LIBRARY_PATH})
+SET(THIS_PYTHONPATH ${CMAKE_SOURCE_DIR}/bin/salome:$ENV{PYTHONPATH})
+#SET(THIS_LD_LIBRARY_PATH $ENV{CMAKE_SOURCE_DIR}/lib/salome:$ENV{LD_LIBRARY_PATH})
 
 # add tests (use make test to run)
 FILE(GLOB tests "${CMAKE_CURRENT_SOURCE_DIR}/Test*.py")
 FOREACH(file ${tests})
   GET_FILENAME_COMPONENT(testname ${file} NAME_WE)
   ADD_TEST(${testname} ${PYTHON_EXECUTABLE} "${file}")
-  SET_PROPERTY(TEST ${testname} APPEND PROPERTY ENVIRONMENT PYTHONPATH=${THIS_PYTHONPATH} LD_LIBRARY_PATH=${THIS_LD_LIBRARY_PATH})
+#  SET_PROPERTY(TEST ${testname} APPEND PROPERTY ENVIRONMENT PYTHONPATH=${THIS_PYTHONPATH} LD_LIBRARY_PATH=${THIS_LD_LIBRARY_PATH})
+  SET_PROPERTY(TEST ${testname} APPEND PROPERTY ENVIRONMENT PYTHONPATH=${THIS_PYTHONPATH})
 ENDFOREACH()
 
 # install Python scripts