2V1-e: live login smoke harness (port.login_live)
port_login_flow_test gains a `live` mode that runs the same script path against a real 40250 server and checks the client's own state: the character list, then LoadingWindow.LoadData from GC_MAIN_CHARACTER (which CPythonNetworkStream answers with CG_CLIENT_VERSION), exiting before the game phase. Host, ports, account and slot come only from MT_LIVE_* env vars, are handed to Python as objects and never printed; without them the test skips. Not yet run live: the server was unreachable today. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
8d9d863c7e
commit
2a8750e736
@@ -219,6 +219,10 @@ if(BUILD_TESTING AND CMAKE_SYSTEM_NAME STREQUAL CMAKE_HOST_SYSTEM_NAME)
|
||||
add_test(NAME port.login_flow
|
||||
COMMAND $<TARGET_FILE:port_login_flow_test> ${MT_40250_CLIENT} ${MT_PYTHON_STDLIB_ZIP})
|
||||
set_tests_properties(port.login_flow PROPERTIES SKIP_RETURN_CODE 77)
|
||||
# 2V1-e: the same path against a live 40250 server; skipped unless MT_LIVE_* is set (see the test).
|
||||
add_test(NAME port.login_live
|
||||
COMMAND $<TARGET_FILE:port_login_flow_test> ${MT_40250_CLIENT} ${MT_PYTHON_STDLIB_ZIP} live)
|
||||
set_tests_properties(port.login_live PROPERTIES SKIP_RETURN_CODE 77 RUN_SERIAL TRUE)
|
||||
|
||||
add_executable(port_python_ui_modules_test ${CMAKE_CURRENT_SOURCE_DIR}/../../tests/port_python_ui_modules_test.cpp)
|
||||
target_link_libraries(port_python_ui_modules_test PRIVATE port_platform)
|
||||
|
||||
Reference in New Issue
Block a user