]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Correct test environment (PV_PLUGIN_PATH variable). akl/tests_update
authorrnv <rnv@opencascade.com>
Wed, 2 Apr 2014 15:05:44 +0000 (19:05 +0400)
committerrnv <rnv@opencascade.com>
Wed, 2 Apr 2014 15:05:44 +0000 (19:05 +0400)
test/VisuPrs/CMakeLists.txt

index bb656b15677a851347c21b8434bee19953e06095..d5bd45e60a15a03fffa92789755bb0fe64d057be 100644 (file)
 
 SET(TIMEOUT 10000)
 SALOME_GENERATE_TESTS_ENVIRONMENT(tests_env)
+
+IF(NOT WIN32)
+  # Special case for the PV_PLUGIN_PATH environment variable:
+  # PV_PLUGIN_PATH=VAL_1;VAL_2;...;VAL_N
+  # But the ';' character is used as separator between variables (PATH, LD_LIBRARY_PATH, etc...)
+  # So we should shield a sequence ";/" by the '\' character.
+  STRING(REGEX REPLACE ";/" "\\\\;/" tests_env "${tests_env}")
+ENDIF(NOT WIN32)
+
 SET(PARAVIS_TEST_HELPER_FILE ${PROJECT_SOURCE_DIR}/test/VisuPrs/Util/paravistesthelper.py)
 
 SET(TEST_DIRECTORIES