@@ -836,59 +836,117 @@ if (TARGET imiv
836836 AND BUILD_TESTING
837837 AND Python3_EXECUTABLE
838838 AND _imiv_test_engine_sources
839- AND _imiv_has_runtime_glslang
840839 AND EXISTS "${_imiv_ocio_live_update_config} " )
841- add_test (
842- NAME imiv_ocio_live_update_regression
843- COMMAND
844- "${Python3_EXECUTABLE} "
845- "${CMAKE_CURRENT_SOURCE_DIR} /tools/imiv_ocio_live_update_regression.py"
846- --bin "$<TARGET_FILE :imiv >"
847- --cwd "$<TARGET_FILE_DIR :imiv >"
848- --oiiotool "$<TARGET_FILE :oiiotool >"
849- --idiff "$<TARGET_FILE :idiff >"
850- --env-script "${CMAKE_BINARY_DIR} /imiv_env.sh"
851- --out-dir "${CMAKE_BINARY_DIR} /imiv_captures/ocio_live_update_regression"
852- --image "${CMAKE_BINARY_DIR} /imiv_captures/ocio_live_update_regression/ocio_live_input.exr"
853- --ocio-config "${_imiv_ocio_live_update_config} " )
854- set_tests_properties (
855- imiv_ocio_live_update_regression PROPERTIES
856- LABELS "imiv;imiv_ocio;gui"
857- TIMEOUT 300 )
840+ if (_imiv_renderer_is_vulkan AND _imiv_has_runtime_glslang)
841+ add_test (
842+ NAME imiv_ocio_live_update_regression
843+ COMMAND
844+ "${Python3_EXECUTABLE} "
845+ "${CMAKE_CURRENT_SOURCE_DIR} /tools/imiv_ocio_live_update_regression.py"
846+ --bin "$<TARGET_FILE :imiv >"
847+ --cwd "$<TARGET_FILE_DIR :imiv >"
848+ --oiiotool "$<TARGET_FILE :oiiotool >"
849+ --idiff "$<TARGET_FILE :idiff >"
850+ --env-script "${CMAKE_BINARY_DIR} /imiv_env.sh"
851+ --out-dir "${CMAKE_BINARY_DIR} /imiv_captures/ocio_live_update_regression"
852+ --image "${CMAKE_BINARY_DIR} /imiv_captures/ocio_live_update_regression/ocio_live_input.exr"
853+ --ocio-config "${_imiv_ocio_live_update_config} " )
854+ set_tests_properties (
855+ imiv_ocio_live_update_regression PROPERTIES
856+ LABELS "imiv;imiv_ocio;gui"
857+ TIMEOUT 300 )
858858
859- add_test (
860- NAME imiv_ocio_live_display_update_regression
861- COMMAND
862- "${Python3_EXECUTABLE} "
863- "${CMAKE_CURRENT_SOURCE_DIR} /tools/imiv_ocio_live_update_regression.py"
864- --bin "$<TARGET_FILE :imiv >"
865- --cwd "$<TARGET_FILE_DIR :imiv >"
866- --oiiotool "$<TARGET_FILE :oiiotool >"
867- --idiff "$<TARGET_FILE :idiff >"
868- --env-script "${CMAKE_BINARY_DIR} /imiv_env.sh"
869- --out-dir "${CMAKE_BINARY_DIR} /imiv_captures/ocio_live_display_update_regression"
870- --image "${CMAKE_BINARY_DIR} /imiv_captures/ocio_live_display_update_regression/ocio_live_input.exr"
871- --ocio-config "${_imiv_ocio_live_update_config} "
872- --display "sRGB - Display"
873- --target-display "Display P3 - Display"
874- --raw-view "Un-tone-mapped"
875- --target-view "Un-tone-mapped" )
876- set_tests_properties (
877- imiv_ocio_live_display_update_regression PROPERTIES
878- LABELS "imiv;imiv_ocio;gui"
879- TIMEOUT 300 )
859+ add_test (
860+ NAME imiv_ocio_live_display_update_regression
861+ COMMAND
862+ "${Python3_EXECUTABLE} "
863+ "${CMAKE_CURRENT_SOURCE_DIR} /tools/imiv_ocio_live_update_regression.py"
864+ --bin "$<TARGET_FILE :imiv >"
865+ --cwd "$<TARGET_FILE_DIR :imiv >"
866+ --oiiotool "$<TARGET_FILE :oiiotool >"
867+ --idiff "$<TARGET_FILE :idiff >"
868+ --env-script "${CMAKE_BINARY_DIR} /imiv_env.sh"
869+ --out-dir "${CMAKE_BINARY_DIR} /imiv_captures/ocio_live_display_update_regression"
870+ --image "${CMAKE_BINARY_DIR} /imiv_captures/ocio_live_display_update_regression/ocio_live_input.exr"
871+ --ocio-config "${_imiv_ocio_live_update_config} "
872+ --display "sRGB - Display"
873+ --target-display "Display P3 - Display"
874+ --raw-view "Un-tone-mapped"
875+ --target-view "Un-tone-mapped" )
876+ set_tests_properties (
877+ imiv_ocio_live_display_update_regression PROPERTIES
878+ LABELS "imiv;imiv_ocio;gui"
879+ TIMEOUT 300 )
880+ elseif (_imiv_renderer_is_opengl)
881+ add_test (
882+ NAME imiv_opengl_ocio_live_update_regression
883+ COMMAND
884+ "${Python3_EXECUTABLE} "
885+ "${CMAKE_CURRENT_SOURCE_DIR} /tools/imiv_ocio_live_update_regression.py"
886+ --bin "$<TARGET_FILE :imiv >"
887+ --cwd "$<TARGET_FILE_DIR :imiv >"
888+ --oiiotool "$<TARGET_FILE :oiiotool >"
889+ --idiff "$<TARGET_FILE :idiff >"
890+ --env-script "${CMAKE_BINARY_DIR} /imiv_env.sh"
891+ --out-dir "${CMAKE_BINARY_DIR} /imiv_captures/opengl_ocio_live_update_regression"
892+ --image "${CMAKE_BINARY_DIR} /imiv_captures/opengl_ocio_live_update_regression/ocio_live_input.exr"
893+ --ocio-config "${_imiv_ocio_live_update_config} " )
894+ set_tests_properties (
895+ imiv_opengl_ocio_live_update_regression PROPERTIES
896+ LABELS "imiv;imiv_ocio;imiv_opengl;gui"
897+ TIMEOUT 300 )
898+
899+ add_test (
900+ NAME imiv_opengl_ocio_live_display_update_regression
901+ COMMAND
902+ "${Python3_EXECUTABLE} "
903+ "${CMAKE_CURRENT_SOURCE_DIR} /tools/imiv_ocio_live_update_regression.py"
904+ --bin "$<TARGET_FILE :imiv >"
905+ --cwd "$<TARGET_FILE_DIR :imiv >"
906+ --oiiotool "$<TARGET_FILE :oiiotool >"
907+ --idiff "$<TARGET_FILE :idiff >"
908+ --env-script "${CMAKE_BINARY_DIR} /imiv_env.sh"
909+ --out-dir "${CMAKE_BINARY_DIR} /imiv_captures/opengl_ocio_live_display_update_regression"
910+ --image "${CMAKE_BINARY_DIR} /imiv_captures/opengl_ocio_live_display_update_regression/ocio_live_input.exr"
911+ --ocio-config "${_imiv_ocio_live_update_config} "
912+ --display "sRGB - Display"
913+ --target-display "Display P3 - Display"
914+ --raw-view "Un-tone-mapped"
915+ --target-view "Un-tone-mapped" )
916+ set_tests_properties (
917+ imiv_opengl_ocio_live_display_update_regression PROPERTIES
918+ LABELS "imiv;imiv_ocio;imiv_opengl;gui"
919+ TIMEOUT 300 )
920+ endif ()
880921elseif (TARGET imiv
881922 AND OIIO_BUILD_TESTS
882923 AND BUILD_TESTING)
883924 message (STATUS
884- "imiv: live OCIO update regression test not added (requires Python3, ImGui Test Engine, runtime glslang , and temp OCIO config )" )
925+ "imiv: live OCIO update regression test not added (requires Python3, ImGui Test Engine, temp OCIO config , and either Vulkan runtime glslang or the OpenGL renderer )" )
885926endif ()
886927
887928if (TARGET imiv
888929 AND OIIO_BUILD_TESTS
889930 AND BUILD_TESTING
890931 AND Python3_EXECUTABLE
891932 AND _imiv_test_engine_sources)
933+ if (_imiv_renderer_is_opengl)
934+ add_test (
935+ NAME imiv_opengl_smoke_regression
936+ COMMAND
937+ "${Python3_EXECUTABLE} "
938+ "${CMAKE_CURRENT_SOURCE_DIR} /tools/imiv_opengl_smoke_regression.py"
939+ --bin "$<TARGET_FILE :imiv >"
940+ --cwd "$<TARGET_FILE_DIR :imiv >"
941+ --env-script "${CMAKE_BINARY_DIR} /imiv_env.sh"
942+ --out-dir "${CMAKE_BINARY_DIR} /imiv_captures/opengl_smoke_regression"
943+ --open "${PROJECT_SOURCE_DIR} /ASWF/logos/openimageio-stacked-gradient.png" )
944+ set_tests_properties (
945+ imiv_opengl_smoke_regression PROPERTIES
946+ LABELS "imiv;imiv_opengl;gui"
947+ TIMEOUT 180 )
948+ endif ()
949+
892950 if (EXISTS "${_imiv_ocio_live_update_config} " )
893951 add_test (
894952 NAME imiv_ocio_config_source_regression
0 commit comments