X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=test.compatibility%2FCMakeLists.txt;h=ba9d5e126ffe8f810261b617d309a722063cefce;hb=4150a5d2828f69cb474640506a878074366ac1ec;hp=9782b9edf320f69cd9a877f6185946472597506d;hpb=0e210b18f74a5233ab4dfef954cb9cb5df941dfb;p=modules%2Fshaper.git diff --git a/test.compatibility/CMakeLists.txt b/test.compatibility/CMakeLists.txt index 9782b9edf..ba9d5e126 100644 --- a/test.compatibility/CMakeLists.txt +++ b/test.compatibility/CMakeLists.txt @@ -21,6 +21,12 @@ ENABLE_TESTING() file(GLOB pyFiles "*.py") +SET(RESTRICTED_ROOT_DIR $ENV{RESTRICTED_ROOT_DIR} CACHE PATH "Path to the restricted repository") + +if (EXISTS ${RESTRICTED_ROOT_DIR}) + file(GLOB pyFilesRestr "${RESTRICTED_ROOT_DIR}/SHAPER/test.compatibility/*.py") +endif() + if (WIN32) # different separators and path to libraries variable name SET(_JUSTPATH "${CMAKE_INSTALL_PREFIX}/${SHAPER_INSTALL_BIN};${CMAKE_INSTALL_PREFIX}/${SHAPER_INSTALL_SWIG};${CMAKE_INSTALL_PREFIX}/${SHAPER_INSTALL_PLUGIN_FILES};${SUIT_LIB_DIR};$ENV{PATH}") STRING(REPLACE "\\" "/" _JUSTPATH "${_JUSTPATH}") @@ -33,7 +39,7 @@ else() SET(_PYTHONPATH "${CMAKE_INSTALL_PREFIX}/${SHAPER_INSTALL_SWIG}:${CMAKE_INSTALL_PREFIX}/${SHAPER_INSTALL_PLUGIN_FILES}:${CMAKE_INSTALL_PREFIX}/${SHAPER_INSTALL_ADDONS}:$ENV{PYTHONPATH}") endif() -foreach(eachFilePath ${pyFiles}) +foreach(eachFilePath ${pyFiles};${pyFilesRestr}) # Strip the ".py" suffix GET_FILENAME_COMPONENT(aTestName ${eachFilePath} NAME_WE)