From 7029068899e460871feb16fe68215f84d7028034 Mon Sep 17 00:00:00 2001 From: Aleksi Sapon Date: Mon, 6 Jan 2025 15:23:23 -0500 Subject: [PATCH] testUsdImagingGLPopOut is OpenGL only --- pxr/usdImaging/usdImagingGL/CMakeLists.txt | 90 ++++++++++++---------- 1 file changed, 49 insertions(+), 41 deletions(-) diff --git a/pxr/usdImaging/usdImagingGL/CMakeLists.txt b/pxr/usdImaging/usdImagingGL/CMakeLists.txt index bad3bb8f8b..b0dd9073aa 100644 --- a/pxr/usdImaging/usdImagingGL/CMakeLists.txt +++ b/pxr/usdImaging/usdImagingGL/CMakeLists.txt @@ -3852,49 +3852,57 @@ pxr_register_test(testUsdImagingGLUsdSkelExtCompGPU_twoBends USDSKELIMAGING_FORCE_CPU_COMPUTE=0 ) -pxr_register_test(testUsdImagingGLPopOut - COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testUsdImagingGLPopOut --output test test.usda" - IMAGE_DIFF_COMPARE - test_0.png - test_1.png - test_2.png - test_3.png - test_4.png - test_5.png - test_6.png - test_7.png - test_8.png - FAIL .05 - FAIL_PERCENT .03 - PERCEPTUAL - EXPECTED_RETURN_CODE 0 - TESTENV testUsdImagingGLPopOut -) +if(PXR_ENABLE_GL_SUPPORT AND X11_FOUND) + pxr_register_test(testUsdImagingGLPopOut + COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testUsdImagingGLPopOut --output test test.usda" + IMAGE_DIFF_COMPARE + test_0.png + test_1.png + test_2.png + test_3.png + test_4.png + test_5.png + test_6.png + test_7.png + test_8.png + FAIL .05 + FAIL_PERCENT .03 + PERCEPTUAL + EXPECTED_RETURN_CODE 0 + TESTENV testUsdImagingGLPopOut + ENV + HGI_ENABLE_VULKAN=0 + ) -pxr_register_test(testUsdImagingGLPopOut_instance - COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testUsdImagingGLPopOut --output test_instance test_instance.usda" - IMAGE_DIFF_COMPARE - test_instance_0.png - test_instance_1.png - test_instance_2.png - test_instance_3.png - test_instance_4.png - test_instance_5.png - test_instance_6.png - test_instance_7.png - test_instance_8.png - FAIL .05 - FAIL_PERCENT .03 - PERCEPTUAL - EXPECTED_RETURN_CODE 0 - TESTENV testUsdImagingGLPopOut -) + pxr_register_test(testUsdImagingGLPopOut_instance + COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testUsdImagingGLPopOut --output test_instance test_instance.usda" + IMAGE_DIFF_COMPARE + test_instance_0.png + test_instance_1.png + test_instance_2.png + test_instance_3.png + test_instance_4.png + test_instance_5.png + test_instance_6.png + test_instance_7.png + test_instance_8.png + FAIL .05 + FAIL_PERCENT .03 + PERCEPTUAL + EXPECTED_RETURN_CODE 0 + TESTENV testUsdImagingGLPopOut + ENV + HGI_ENABLE_VULKAN=0 + ) -pxr_register_test(testUsdImagingGLPopOut_instance_empty - COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testUsdImagingGLPopOut --output test_instance_empty test_instance_empty.usda" - EXPECTED_RETURN_CODE 0 - TESTENV testUsdImagingGLPopOut -) + pxr_register_test(testUsdImagingGLPopOut_instance_empty + COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testUsdImagingGLPopOut --output test_instance_empty test_instance_empty.usda" + EXPECTED_RETURN_CODE 0 + TESTENV testUsdImagingGLPopOut + ENV + HGI_ENABLE_VULKAN=0 + ) +endif() pxr_register_test(testUsdImagingGLMaterialTag COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testUsdImagingGLBasicDrawing -lighting -cullStyle back -offscreen -frameAll -stage materialTag.usda -write testUsdImagingGLMaterialTag.png"