-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EMSUSD-820 run more of the Pxiar plugin tests
There were tests in the "pxrUsdMayaGL" folder in the pxr (Pixar) plugin that were not run. As a first step, make these test be run when testing the plugin. - Add a CMakeLists.txt to setup the test to be run when built using cmake. - Make sure the folder paths are correct while running the test. - Make sure the relative USD files used in assembly are found. - Add one missing baseline image file. - Disable the testRefAssemblyDrawRepresentations unit test since it fails in the "Expanded" mode.
- Loading branch information
1 parent
e32ff36
commit 66f2462
Showing
7 changed files
with
149 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
add_subdirectory(usdMaya) | ||
|
||
add_subdirectory(pxrUsdMayaGL) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Unit test scripts. | ||
set(TEST_SCRIPT_FILES | ||
# Note: the following test fails when switching to the "Expanded" | ||
# assembly mode, so disabled it until Pixar figures | ||
# what is going wrong. | ||
# testenv/testRefAssemblyDrawRepresentations.py | ||
testenv/testBatchRendererIsolateSelection.py | ||
testenv/testPxrUsdMayaGLInstancerDraw.py | ||
) | ||
|
||
foreach(script ${TEST_SCRIPT_FILES}) | ||
mayaUsd_get_unittest_target(target ${script}) | ||
mayaUsd_add_test(${target} | ||
INTERACTIVE | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} | ||
PYTHON_SCRIPT ${script} | ||
ENV | ||
"LD_LIBRARY_PATH=${ADDITIONAL_LD_LIBRARY_PATH}" | ||
|
||
# Maya uses a very old version of GLEW, so we need support for | ||
# pre-loading a newer version from elsewhere. | ||
"LD_PRELOAD=${ADDITIONAL_LD_PRELOAD}" | ||
|
||
# All of the pxrUsdMayaGL tests exercise Pixar's batch renderer, so | ||
# we turn the Viewport 2.0 render delegate off. | ||
"MAYAUSD_DISABLE_VP2_RENDER_DELEGATE=1" | ||
|
||
# Fallback to old color management. We will have to investigate | ||
# and introduce OCIOv2 compatible version of these tests. | ||
"MAYA_COLOR_MANAGEMENT_SYNCOLOR=1" | ||
) | ||
|
||
# Assign a CTest label to these tests for easy filtering. | ||
set_property(TEST ${target} APPEND PROPERTY LABELS pxrUsdMayaGL) | ||
endforeach() |
Binary file added
BIN
+31.3 KB
...ya/lib/pxrUsdMayaGL/testenv/InstancerDrawTest/baseline/InstancerTest_reload.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters