Extract grid UI operation planning
This commit is contained in:
@@ -278,6 +278,16 @@ add_test(NAME pp_app_core_brush_ui_tests COMMAND pp_app_core_brush_ui_tests)
|
||||
set_tests_properties(pp_app_core_brush_ui_tests PROPERTIES
|
||||
LABELS "app;paint;desktop-fast;fuzz")
|
||||
|
||||
add_executable(pp_app_core_grid_ui_tests
|
||||
app_core/grid_ui_tests.cpp)
|
||||
target_link_libraries(pp_app_core_grid_ui_tests PRIVATE
|
||||
pp_app_core
|
||||
pp_test_harness)
|
||||
|
||||
add_test(NAME pp_app_core_grid_ui_tests COMMAND pp_app_core_grid_ui_tests)
|
||||
set_tests_properties(pp_app_core_grid_ui_tests PROPERTIES
|
||||
LABELS "app;ui;renderer;desktop-fast;fuzz")
|
||||
|
||||
add_executable(pp_app_core_document_route_tests
|
||||
app_core/document_route_tests.cpp)
|
||||
target_link_libraries(pp_app_core_document_route_tests PRIVATE
|
||||
@@ -816,6 +826,42 @@ if(TARGET pano_cli)
|
||||
LABELS "app;paint;integration;desktop-fast;fuzz"
|
||||
WILL_FAIL TRUE)
|
||||
|
||||
add_test(NAME pano_cli_plan_grid_operation_pick_smoke
|
||||
COMMAND pano_cli plan-grid-operation --kind pick)
|
||||
set_tests_properties(pano_cli_plan_grid_operation_pick_smoke PROPERTIES
|
||||
LABELS "app;ui;renderer;integration;desktop-fast"
|
||||
PASS_REGULAR_EXPRESSION "\"command\":\"plan-grid-operation\".*\"operation\":\"request-heightmap-pick\".*\"opensPicker\":true.*\"mutatesGridState\":false")
|
||||
|
||||
add_test(NAME pano_cli_plan_grid_operation_load_smoke
|
||||
COMMAND pano_cli plan-grid-operation --kind load --path D:/Paint/height.png)
|
||||
set_tests_properties(pano_cli_plan_grid_operation_load_smoke PROPERTIES
|
||||
LABELS "app;ui;renderer;integration;desktop-fast"
|
||||
PASS_REGULAR_EXPRESSION "\"command\":\"plan-grid-operation\".*\"operation\":\"load-heightmap\".*\"path\":\"D:/Paint/height.png\".*\"loadsHeightmap\":true.*\"updatesPreview\":true.*\"updatesGroundOpacity\":true")
|
||||
|
||||
add_test(NAME pano_cli_plan_grid_operation_render_supported_smoke
|
||||
COMMAND pano_cli plan-grid-operation --kind render --float32 --texture-resolution 1024 --samples 32)
|
||||
set_tests_properties(pano_cli_plan_grid_operation_render_supported_smoke PROPERTIES
|
||||
LABELS "app;ui;renderer;integration;desktop-fast"
|
||||
PASS_REGULAR_EXPRESSION "\"command\":\"plan-grid-operation\".*\"operation\":\"render-lightmap\".*\"textureResolution\":1024.*\"sampleCount\":32.*\"rendersLightmap\":true.*\"updatesShadingMode\":true.*\"showsProgress\":true")
|
||||
|
||||
add_test(NAME pano_cli_plan_grid_operation_render_unsupported_smoke
|
||||
COMMAND pano_cli plan-grid-operation --kind render)
|
||||
set_tests_properties(pano_cli_plan_grid_operation_render_unsupported_smoke PROPERTIES
|
||||
LABELS "app;ui;renderer;integration;desktop-fast;fuzz"
|
||||
PASS_REGULAR_EXPRESSION "\"command\":\"plan-grid-operation\".*\"operation\":\"render-lightmap\".*\"rendersLightmap\":false.*\"showsUnsupportedMessage\":true")
|
||||
|
||||
add_test(NAME pano_cli_plan_grid_operation_rejects_empty_reload
|
||||
COMMAND pano_cli plan-grid-operation --kind reload)
|
||||
set_tests_properties(pano_cli_plan_grid_operation_rejects_empty_reload PROPERTIES
|
||||
LABELS "app;ui;renderer;integration;desktop-fast;fuzz"
|
||||
WILL_FAIL TRUE)
|
||||
|
||||
add_test(NAME pano_cli_plan_grid_operation_rejects_bad_samples
|
||||
COMMAND pano_cli plan-grid-operation --kind render --float32 --samples 0)
|
||||
set_tests_properties(pano_cli_plan_grid_operation_rejects_bad_samples PROPERTIES
|
||||
LABELS "app;ui;renderer;integration;desktop-fast;fuzz"
|
||||
WILL_FAIL TRUE)
|
||||
|
||||
add_test(NAME pano_cli_plan_share_file_unsaved_smoke
|
||||
COMMAND pano_cli plan-share-file)
|
||||
set_tests_properties(pano_cli_plan_share_file_unsaved_smoke PROPERTIES
|
||||
|
||||
Reference in New Issue
Block a user