Centralize legacy app startup
This commit is contained in:
@@ -488,6 +488,16 @@ add_test(NAME pp_app_core_app_status_tests COMMAND pp_app_core_app_status_tests)
|
||||
set_tests_properties(pp_app_core_app_status_tests PROPERTIES
|
||||
LABELS "app;desktop-fast;fuzz")
|
||||
|
||||
add_executable(pp_app_core_app_startup_tests
|
||||
app_core/app_startup_tests.cpp)
|
||||
target_link_libraries(pp_app_core_app_startup_tests PRIVATE
|
||||
pp_app_core
|
||||
pp_test_harness)
|
||||
|
||||
add_test(NAME pp_app_core_app_startup_tests COMMAND pp_app_core_app_startup_tests)
|
||||
set_tests_properties(pp_app_core_app_startup_tests PROPERTIES
|
||||
LABELS "app;desktop-fast;fuzz")
|
||||
|
||||
add_executable(pp_app_core_document_sharing_tests
|
||||
app_core/document_sharing_tests.cpp)
|
||||
target_link_libraries(pp_app_core_document_sharing_tests PRIVATE
|
||||
@@ -851,6 +861,22 @@ if(TARGET pano_cli)
|
||||
LABELS "app;integration;desktop-fast;fuzz"
|
||||
PASS_REGULAR_EXPRESSION "\"command\":\"plan-app-preferences\".*\"scaleSelection\":\\{\"hasSelection\":false,\"index\":0\\}.*\"direction\":\"left-to-right\".*\"timelapse\":\\{\"enabled\":false,\"recordingAction\":\"stop-recording\"\\}.*\"vrControllers\":\\{\"enabled\":false\\}")
|
||||
|
||||
add_test(NAME pano_cli_plan_app_startup_smoke
|
||||
COMMAND pano_cli plan-app-startup
|
||||
--run-counter 7
|
||||
--vr-controllers-disabled
|
||||
--license-invalid)
|
||||
set_tests_properties(pano_cli_plan_app_startup_smoke PROPERTIES
|
||||
LABELS "app;integration;desktop-fast"
|
||||
PASS_REGULAR_EXPRESSION "\"command\":\"plan-app-startup\".*\"runCounter\":7.*\"licenseValid\":false.*\"previousRunCounter\":7.*\"nextRunCounter\":8.*\"savePreferences\":true.*\"startTimelapse\":true.*\"vrControllersEnabled\":false.*\"showLicenseWarning\":true")
|
||||
|
||||
add_test(NAME pano_cli_plan_app_startup_rejects_negative_counter
|
||||
COMMAND pano_cli plan-app-startup --run-counter -1)
|
||||
set_tests_properties(pano_cli_plan_app_startup_rejects_negative_counter PROPERTIES
|
||||
LABELS "app;integration;desktop-fast;fuzz"
|
||||
WILL_FAIL TRUE
|
||||
PASS_REGULAR_EXPRESSION "\"command\":\"plan-app-startup\".*\"message\":\"run counter must not be negative\"")
|
||||
|
||||
add_test(NAME pano_cli_plan_tools_menu_shortcuts_smoke
|
||||
COMMAND pano_cli plan-tools-menu --command shortcuts)
|
||||
set_tests_properties(pano_cli_plan_tools_menu_shortcuts_smoke PROPERTIES
|
||||
|
||||
Reference in New Issue
Block a user