From ad54d394a6b008dfea00f34123bb08cdd877aefa Mon Sep 17 00:00:00 2001 From: Luca Scheller Date: Tue, 31 Oct 2023 14:09:00 +0100 Subject: [PATCH] Refactor test exec --- setup.sh | 2 +- src/CachedResolver/CMakeLists.txt | 6 +++--- src/FileResolver/CMakeLists.txt | 6 +++--- src/PythonResolver/CMakeLists.txt | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/setup.sh b/setup.sh index 2ea794c..9c4fef0 100644 --- a/setup.sh +++ b/setup.sh @@ -5,7 +5,7 @@ then export REPO_SOURCED=1 export REPO_ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && (pwd -W 2> /dev/null || pwd)) # Define Resolver > Has to be one of 'fileResolver'/'pythonResolver'/'cachedResolver'/'httpResolver' - export RESOLVER_NAME=cachedResolver + export RESOLVER_NAME=httpResolver export RESOLVER_NAME_UPPERCASE=$(echo ${RESOLVER_NAME} | tr '[:lower:]' '[:upper:]') # Source Houdini (This defines what Houdini version to compile against) pushd /opt/hfs19.5 > /dev/null diff --git a/src/CachedResolver/CMakeLists.txt b/src/CachedResolver/CMakeLists.txt index 2a1db08..d488306 100644 --- a/src/CachedResolver/CMakeLists.txt +++ b/src/CachedResolver/CMakeLists.txt @@ -120,9 +120,9 @@ install( # ### Tests ### set(TESTS_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/testenv) -set(TESTS_ENV_PYTHONPATH "PYTHONPATH=${CMAKE_INSTALL_PREFIX}/lib/python:${AR_PYTHON_LIB_SITEPACKAGES}") -set(TESTS_ENV_PXR_PLUGINPATH_NAME "PXR_PLUGINPATH_NAME=${CMAKE_INSTALL_PREFIX}/resources") -set(TESTS_ENV_LD_LIBRARY_PATH "LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib:$ENV{HFS}/python/lib:$ENV{HFS}/dsolib") +set(TESTS_ENV_PYTHONPATH "PYTHONPATH=${CMAKE_INSTALL_PREFIX}/${AR_CACHEDRESOLVER_USD_PLUGIN_NAME}/lib/python") +set(TESTS_ENV_PXR_PLUGINPATH_NAME "PXR_PLUGINPATH_NAME=${CMAKE_INSTALL_PREFIX}/${AR_CACHEDRESOLVER_USD_PLUGIN_NAME}/resources") +set(TESTS_ENV_LD_LIBRARY_PATH "LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/${AR_CACHEDRESOLVER_USD_PLUGIN_NAME}/lib") set(TESTS_PYTHON_COMMAND $ENV{HFS}/python/bin/python -B -m unittest discover ${TESTS_SOURCE_DIR}) add_test( diff --git a/src/FileResolver/CMakeLists.txt b/src/FileResolver/CMakeLists.txt index 3a7b714..d47e292 100644 --- a/src/FileResolver/CMakeLists.txt +++ b/src/FileResolver/CMakeLists.txt @@ -105,9 +105,9 @@ install( ### Tests ### set(TESTS_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/testenv) -set(TESTS_ENV_PYTHONPATH "PYTHONPATH=${CMAKE_INSTALL_PREFIX}/lib/python:${AR_PYTHON_LIB_SITEPACKAGES}") -set(TESTS_ENV_PXR_PLUGINPATH_NAME "PXR_PLUGINPATH_NAME=${CMAKE_INSTALL_PREFIX}/resources") -set(TESTS_ENV_LD_LIBRARY_PATH "LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib:$ENV{HFS}/python/lib:$ENV{HFS}/dsolib") +set(TESTS_ENV_PYTHONPATH "PYTHONPATH=${CMAKE_INSTALL_PREFIX}/${AR_FILERESOLVER_USD_PLUGIN_NAME}/lib/python") +set(TESTS_ENV_PXR_PLUGINPATH_NAME "PXR_PLUGINPATH_NAME=${CMAKE_INSTALL_PREFIX}/${AR_FILERESOLVER_USD_PLUGIN_NAME}/resources") +set(TESTS_ENV_LD_LIBRARY_PATH "LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/${AR_FILERESOLVER_USD_PLUGIN_NAME}/lib") set(TESTS_ENV_AR_SEARCH_PATHS "AR_SEARCH_PATHS=/env/search/pathA:/env/search/pathB") set(TESTS_ENV_AR_SEARCH_REGEX_EXPRESSION "AR_SEARCH_REGEX_EXPRESSION=(v\\d\\d\\d)") set(TESTS_ENV_AR_SEARCH_REGEX_FORMAT "AR_SEARCH_REGEX_FORMAT=v000") diff --git a/src/PythonResolver/CMakeLists.txt b/src/PythonResolver/CMakeLists.txt index 9185639..c2739f6 100644 --- a/src/PythonResolver/CMakeLists.txt +++ b/src/PythonResolver/CMakeLists.txt @@ -112,9 +112,9 @@ install( ### Tests ### set(TESTS_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/testenv) -set(TESTS_ENV_PYTHONPATH "PYTHONPATH=${CMAKE_INSTALL_PREFIX}/lib/python:${AR_PYTHON_LIB_SITEPACKAGES}") -set(TESTS_ENV_PXR_PLUGINPATH_NAME "PXR_PLUGINPATH_NAME=${CMAKE_INSTALL_PREFIX}/resources") -set(TESTS_ENV_LD_LIBRARY_PATH "LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib:$ENV{HFS}/python/lib:$ENV{HFS}/dsolib") +set(TESTS_ENV_PYTHONPATH "PYTHONPATH=${CMAKE_INSTALL_PREFIX}/${AR_PYTHONRESOLVER_USD_PLUGIN_NAME}/lib/python") +set(TESTS_ENV_PXR_PLUGINPATH_NAME "PXR_PLUGINPATH_NAME=${CMAKE_INSTALL_PREFIX}/${AR_PYTHONRESOLVER_USD_PLUGIN_NAME}/resources") +set(TESTS_ENV_LD_LIBRARY_PATH "LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/${AR_PYTHONRESOLVER_USD_PLUGIN_NAME}/lib") set(TESTS_ENV_AR_SEARCH_PATHS "AR_SEARCH_PATHS=/env/search/pathA:/env/search/pathB") set(TESTS_ENV_AR_SEARCH_REGEX_EXPRESSION "AR_SEARCH_REGEX_EXPRESSION=(v\\d\\d\\d)") set(TESTS_ENV_AR_SEARCH_REGEX_FORMAT "AR_SEARCH_REGEX_FORMAT=v000")