Skip to content

Commit

Permalink
Merge pull request #409 from AnimalLogic/ALRezTestsDev1
Browse files Browse the repository at this point in the history
Update mayaUsd_add_test macro calls in AL plugin to add support for additional schema paths
  • Loading branch information
Krystian Ligenza authored Apr 8, 2020
2 parents 09306b9 + 3445524 commit 1d77003
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/usd/translators/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,4 @@ if(IS_WINDOWS)
DESTINATION ${library_install_path} OPTIONAL
)
endif()


Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@ mayaUsd_add_test(${TARGET_NAME}
PYTHON_COMMAND "${pycode}"
ENV
"MAYA_PLUG_IN_PATH=${MAYAUTILS_TEST_MAYAPLUGIN_INSTALL_PATH}"
)
"PXR_PLUGINPATH_NAME=${ADDITIONAL_PXR_PLUGINPATH_NAME}"
)
2 changes: 2 additions & 0 deletions plugin/al/plugin/AL_USDMayaTestPlugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ sys.exit(maya.cmds.AL_maya_test_UnitTestHarness())

mayaUsd_add_test(${TARGET_NAME}
PYTHON_COMMAND "${pycode}"
ENV
"PXR_PLUGINPATH_NAME=${ADDITIONAL_PXR_PLUGINPATH_NAME}"
)

if(NOT SKIP_USDMAYA_TESTS)
Expand Down
8 changes: 8 additions & 0 deletions plugin/al/plugin/AL_USDMayaTestPlugin/py/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
mayaUsd_add_test(TestALUSDMayaPython_ProxyShape
PYTHON_MODULE testProxyShape
ENV
"PXR_PLUGINPATH_NAME=${ADDITIONAL_PXR_PLUGINPATH_NAME}"
)

mayaUsd_add_test(TestALUSDMayaPython_Translators
PYTHON_MODULE testTranslators
ENV
"PXR_PLUGINPATH_NAME=${ADDITIONAL_PXR_PLUGINPATH_NAME}"
)

mayaUsd_add_test(TestALUSDMayaPython_LayerManager
PYTHON_MODULE testLayerManager
ENV
"PXR_PLUGINPATH_NAME=${ADDITIONAL_PXR_PLUGINPATH_NAME}"
)

mayaUsd_add_test(TestALUSDMayaPython_ImportModule
PYTHON_MODULE testUSDMayaPythonModuleOnly
ENV
"PXR_PLUGINPATH_NAME=${ADDITIONAL_PXR_PLUGINPATH_NAME}"
NO_STANDALONE_INIT
)
2 changes: 2 additions & 0 deletions plugin/al/schemas/AL/usd/schemas/maya/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,6 @@ endif()

mayaUsd_add_test(${TARGET_NAME}
COMMAND $<TARGET_FILE:${TARGET_NAME}>
ENV
"PXR_PLUGINPATH_NAME=${ADDITIONAL_PXR_PLUGINPATH_NAME}"
)
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ mayaUsd_add_test(${TEST_NAME}
ENV
"PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}"
"TEST_DIR=${CMAKE_CURRENT_SOURCE_DIR}"
"PXR_PLUGINPATH_NAME=${ADDITIONAL_PXR_PLUGINPATH_NAME}"
)
2 changes: 2 additions & 0 deletions plugin/al/translators/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
mayaUsd_add_test(TestAdditionalTranslators
PYTHON_MODULE testTranslators
ENV
"PXR_PLUGINPATH_NAME=${ADDITIONAL_PXR_PLUGINPATH_NAME}"
)

0 comments on commit 1d77003

Please sign in to comment.