test: add renderer phase regression entrypoint
This commit is contained in:
@@ -44,6 +44,30 @@ add_subdirectory(Resources)
|
||||
add_subdirectory(Input)
|
||||
add_subdirectory(Editor)
|
||||
|
||||
if(WIN32)
|
||||
find_program(XCENGINE_POWERSHELL_EXECUTABLE NAMES powershell pwsh REQUIRED)
|
||||
|
||||
add_custom_target(rendering_phase_regression_build
|
||||
DEPENDS
|
||||
rendering_all_tests
|
||||
editor_tests
|
||||
XCEditor
|
||||
)
|
||||
|
||||
add_custom_target(rendering_phase_regression
|
||||
COMMAND "${XCENGINE_POWERSHELL_EXECUTABLE}"
|
||||
-NoProfile
|
||||
-ExecutionPolicy Bypass
|
||||
-File "${CMAKE_SOURCE_DIR}/scripts/Run-RendererPhaseRegression.ps1"
|
||||
-RepoRoot "${CMAKE_SOURCE_DIR}"
|
||||
-BuildDir "${CMAKE_BINARY_DIR}"
|
||||
-Config $<CONFIG>
|
||||
-CleanBuild
|
||||
USES_TERMINAL
|
||||
COMMENT "Run renderer phase regression suite"
|
||||
)
|
||||
endif()
|
||||
|
||||
# ============================================================
|
||||
# Test Summary
|
||||
# ============================================================
|
||||
|
||||
@@ -4,3 +4,27 @@ project(XCEngine_RenderingTests)
|
||||
|
||||
add_subdirectory(unit)
|
||||
add_subdirectory(integration)
|
||||
|
||||
add_custom_target(rendering_unit_test_targets
|
||||
DEPENDS
|
||||
rendering_unit_tests
|
||||
)
|
||||
|
||||
add_custom_target(rendering_integration_tests
|
||||
DEPENDS
|
||||
rendering_integration_textured_quad_scene
|
||||
rendering_integration_backpack_scene
|
||||
rendering_integration_backpack_lit_scene
|
||||
rendering_integration_camera_stack_scene
|
||||
rendering_integration_transparent_material_scene
|
||||
rendering_integration_cull_material_scene
|
||||
rendering_integration_depth_sort_scene
|
||||
rendering_integration_material_state_scene
|
||||
rendering_integration_offscreen_scene
|
||||
)
|
||||
|
||||
add_custom_target(rendering_all_tests
|
||||
DEPENDS
|
||||
rendering_unit_test_targets
|
||||
rendering_integration_tests
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user