Files

1542 lines
135 KiB
CMake

cmake_minimum_required(VERSION 3.20)
project(wow_hybrid_gateway LANGUAGES C CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# The sign-in binding is for hosts that embed standard Lua 5.1.
find_package(Lua 5.1 EXACT QUIET)
if(LUA_FOUND)
add_library(gateway_account_login_lua STATIC native/ui/account_login_binding.c)
target_include_directories(gateway_account_login_lua PUBLIC native/ui PRIVATE ${LUA_INCLUDE_DIR})
target_link_libraries(gateway_account_login_lua PUBLIC ${LUA_LIBRARIES})
endif()
if(WIN32)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/WindowsBackend.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/WindowsNohelperProfile5.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/WindowsAgilityProxy.cmake)
return()
endif()
find_package(OpenSSL 3.0 REQUIRED)
find_package(ZLIB REQUIRED)
find_package(PkgConfig REQUIRED)
pkg_check_modules(MARIADB REQUIRED IMPORTED_TARGET libmariadb)
find_package(Python3 REQUIRED COMPONENTS Interpreter)
find_program(LUA_EXECUTABLE NAMES lua lua5.1 lua5.4)
add_library(gateway_protocol src/protocol.cpp src/auras.cpp src/srp.cpp src/forever.cpp src/legacy_client.cpp src/realms.cpp src/roster_translation.cpp src/world.cpp src/object_updates.cpp src/chat.cpp src/queries.cpp src/splines.cpp src/gameplay.cpp src/npc_text.cpp src/reputation.cpp src/talents.cpp src/loot.cpp src/group.cpp src/quest_packets.cpp src/quest_log.cpp src/social.cpp src/contact_names.cpp src/who.cpp src/pvp_statistics.cpp src/auction_browse.cpp src/auction_aux.cpp src/pet_stable.cpp)
target_include_directories(gateway_protocol PUBLIC include)
# Use one admitted inline creation profile across protocol and registry objects.
set(GW_LOGIN_PROFILE_HEADER "" CACHE FILEPATH "Isolated reviewed creation profile header")
set(GW_CREATION_PROFILE_PROOF "" CACHE FILEPATH "Pinned reviewed creation profile proof")
if(GW_LOGIN_PROFILE_HEADER OR GW_CREATION_PROFILE_PROOF)
if(NOT GW_LOGIN_PROFILE_HEADER OR NOT GW_CREATION_PROFILE_PROOF)
message(FATAL_ERROR "Creation profile requires both header and reviewed proof")
endif()
get_filename_component(GW_LOGIN_INPUT "${GW_LOGIN_PROFILE_HEADER}" ABSOLUTE BASE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
get_filename_component(GW_LOGIN_PROOF "${GW_CREATION_PROFILE_PROOF}" ABSOLUTE BASE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
execute_process(COMMAND "${Python3_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/ops/creation_login_profile.py"
--header "${GW_LOGIN_INPUT}" --proof "${GW_LOGIN_PROOF}"
--output-directory "${CMAKE_CURRENT_BINARY_DIR}" --canonical-output "${CMAKE_CURRENT_SOURCE_DIR}/build"
RESULT_VARIABLE GW_LOGIN_STATUS OUTPUT_VARIABLE GW_LOGIN_INFO ERROR_VARIABLE GW_LOGIN_ERROR)
if(NOT GW_LOGIN_STATUS EQUAL 0)
message(FATAL_ERROR "Isolated creation profile admission failed: ${GW_LOGIN_ERROR}")
endif()
string(JSON GW_LOGIN_INCLUDE_DIRECTORY GET "${GW_LOGIN_INFO}" include_directory)
target_include_directories(gateway_protocol BEFORE PUBLIC "${GW_LOGIN_INCLUDE_DIRECTORY}")
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "${GW_LOGIN_INPUT}" "${GW_LOGIN_PROOF}"
"${CMAKE_CURRENT_SOURCE_DIR}/include/gateway/turtle_login_profile.hpp"
"${CMAKE_CURRENT_SOURCE_DIR}/ops/creation_login_profile.py")
endif()
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/ItemBuildBase.cmake)
gw_admit_item_build_base(gateway_protocol)
target_sources(gateway_protocol PRIVATE src/guild_bank.cpp)
target_sources(gateway_protocol PRIVATE src/guild_notifications.cpp)
target_sources(gateway_protocol PRIVATE src/warrior_cooldown_modifiers.cpp src/spell_modifier_operations.cpp src/spell_modifier_group_values.cpp src/spell_modifiers.cpp)
target_sources(gateway_protocol PRIVATE src/aura_state.cpp src/remote_speeds.cpp src/character_creation.cpp src/character_creation_lifecycle.cpp)
target_sources(gateway_protocol PRIVATE src/character_initialization.cpp src/legacy_stream.cpp src/world_authentication.cpp)
target_link_libraries(gateway_protocol PUBLIC OpenSSL::Crypto ZLIB::ZLIB)
target_compile_options(gateway_protocol PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_executable(gateway-probe src/probe.cpp)
target_link_libraries(gateway-probe PRIVATE gateway_protocol)
target_compile_options(gateway-probe PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_executable(protocol-tests tests/protocol_tests.cpp)
add_executable(edit-mode-account-data-tests tests/account_data_store_test.cpp)
target_link_libraries(edit-mode-account-data-tests PRIVATE gateway_protocol)
add_test(NAME edit-mode-account-data COMMAND edit-mode-account-data-tests)
add_executable(extended-action-bars-tests tests/extended_action_bars_test.cpp)
target_link_libraries(extended-action-bars-tests PRIVATE gateway_protocol)
add_test(NAME extended-action-bars COMMAND extended-action-bars-tests)
add_executable(sdhd-account-preference-tests tests/sdhd_account_preference_test.cpp)
target_include_directories(sdhd-account-preference-tests PRIVATE include)
target_link_libraries(sdhd-account-preference-tests PRIVATE ZLIB::ZLIB)
add_test(NAME sdhd-account-preference COMMAND sdhd-account-preference-tests)
add_executable(source-local-realm-ports-tests tests/source_local_realm_ports_test.c)
add_test(NAME source-local-realm-ports COMMAND source-local-realm-ports-tests)
add_executable(legacy-source-key-width-tests tests/legacy_source_key_width_test.cpp)
target_link_libraries(legacy-source-key-width-tests PRIVATE gateway_protocol OpenSSL::Crypto)
add_test(NAME source-legacy-header-key-width COMMAND legacy-source-key-width-tests)
add_executable(spline-ground-target-tests tests/spline_ground_target_test.cpp)
target_link_libraries(spline-ground-target-tests PRIVATE gateway_protocol)
add_test(NAME source-player-ground-target-spline COMMAND spline-ground-target-tests)
add_executable(native-spline-target-pipeline-tests tests/native_spline_target_pipeline_test.cpp)
target_link_libraries(native-spline-target-pipeline-tests PRIVATE gateway_native gateway_protocol ZLIB::ZLIB)
add_test(NAME native-source-target-spline-pipeline COMMAND native-spline-target-pipeline-tests)
target_link_libraries(protocol-tests PRIVATE gateway_protocol)
enable_testing()
if(TARGET gateway_account_login_lua)
add_executable(account-login-binding-test tests/account_login_binding_test.c)
target_include_directories(account-login-binding-test PRIVATE ${LUA_INCLUDE_DIR})
target_link_libraries(account-login-binding-test PRIVATE gateway_account_login_lua)
add_test(NAME account-login-lua-binding COMMAND account-login-binding-test)
endif()
add_test(NAME regression-gate-process-status COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/regression_gate_status_test.py)
add_test(NAME m2-stalled-lookup-capture COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/m2_stalled_lookup_test.py)
add_test(NAME m2-native-sequence-references COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/m2_sequence_refs_test.py)
add_test(NAME m2-native-sequence-hash COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/m2_sequence_hash_test.py)
add_test(NAME m2-native-sequence-helper-imports COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/m2_sequence_hash_import_paths_test.py)
add_test(NAME owned-account-login-ui COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/account_login_owned_ui_test.py)
add_test(NAME native-wire-export-contract COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_wire_export_contract_test.py)
add_test(NAME native-channel-policy-request COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_channel_policy_request_test.py)
add_test(NAME offline-codecs COMMAND protocol-tests)
add_test(NAME source-class-talent-groups COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/class_talent_group_test.py)
add_executable(item-use-packet-tests tests/item_use_packet_test.cpp)
target_link_libraries(item-use-packet-tests PRIVATE gateway_protocol)
add_test(NAME source-item-use-targets COMMAND item-use-packet-tests)
add_executable(item-query-tests tests/item_query_test.cpp)
target_link_libraries(item-query-tests PRIVATE gateway_protocol)
add_test(NAME source-item-template-metadata COMMAND item-query-tests)
add_executable(ipv4-endpoint-tests tests/ipv4_endpoint_test.cpp)
target_link_libraries(ipv4-endpoint-tests PRIVATE gateway_protocol)
add_test(NAME explicit-ipv4-endpoint-policy COMMAND ipv4-endpoint-tests)
add_executable(loot-packet-tests tests/loot_test.cpp)
target_link_libraries(loot-packet-tests PRIVATE gateway_protocol)
add_test(NAME source-loot-wire-contract COMMAND loot-packet-tests)
add_executable(group-packet-tests tests/group_test.cpp)
target_link_libraries(group-packet-tests PRIVATE gateway_protocol)
add_test(NAME source-group-wire-contract COMMAND group-packet-tests)
add_executable(roster-visual-tests tests/roster_visual_test.cpp)
target_link_libraries(roster-visual-tests PRIVATE gateway_protocol)
add_test(NAME source-roster-equipment-visuals COMMAND roster-visual-tests)
add_test(NAME source-original-race-eligibility COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/turtle_login_profile_test.py)
add_custom_target(codec-closure-recovery-tests
COMMAND ${Python3_EXECUTABLE} -m py_compile ${CMAKE_CURRENT_SOURCE_DIR}/ops/build_forever_create.py ${CMAKE_CURRENT_SOURCE_DIR}/ops/codec_input_bundle.py ${CMAKE_CURRENT_SOURCE_DIR}/tests/codec_closure_recovery_test.py)
add_test(NAME codec-closure-recovery COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/codec_closure_recovery_test.py)
add_executable(primary-profession-tests tests/primary_profession_test.cpp)
target_link_libraries(primary-profession-tests PRIVATE gateway_protocol)
add_test(NAME source-primary-profession-state COMMAND primary-profession-tests)
add_executable(profession-delta-tests tests/profession_delta_test.cpp)
target_link_libraries(profession-delta-tests PRIVATE gateway_protocol)
add_test(NAME source-profession-sparse-state COMMAND profession-delta-tests)
add_custom_target(profession-state-tests DEPENDS primary-profession-tests profession-delta-tests)
add_test(NAME source-primary-profession-profile COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/profession_profile_test.py)
add_executable(local-character-fixture tests/local_character_fixture.cpp)
target_link_libraries(local-character-fixture PRIVATE gateway_protocol)
target_compile_options(local-character-fixture PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME local-character-fixture-guards COMMAND local-character-fixture --self-test)
add_test(NAME local-character-fixture-inputs COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/local_character_fixture_test.py)
add_test(NAME source-transport-opcode-profile COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/forever_opcode_profile_test.py)
set(GW_ENTITY_CODEC "${CMAKE_BINARY_DIR}/forever-schema/libforever_codec.so" CACHE FILEPATH "Source-matched isolated schema codec for entity regression tests")
add_test(NAME source-spell-damage-writer-parity
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/spell_damage_serializer_fixture.py
"${GW_ENTITY_CODEC}" "$<TARGET_FILE:gateway_protocol>")
set_tests_properties(source-spell-damage-writer-parity PROPERTIES SKIP_RETURN_CODE 77 LABELS local-source-codec)
add_test(NAME source-merchant-opcode-profile COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/ops/merchant_opcode_profile.py --check)
add_test(NAME source-inventory-result-profile COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/inventory_result_profile_test.py)
add_test(NAME source-item-sparse-compat COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_sparse_compat_test.py)
add_test(NAME source-catalogue-compat COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/source_catalogue_compat_test.py)
set_tests_properties(source-catalogue-compat PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}/ops:${CMAKE_CURRENT_SOURCE_DIR}/tests")
add_test(NAME source-octo-manifest-resolution COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/octo_source_resolution_test.py)
add_test(NAME octo-loaded-content-provenance COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/octo_loaded_content_test.py)
add_test(NAME octo-observe-only-PE32-contracts COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/octo_dbc_read_trace_test.py)
add_test(NAME source-item-batch-preflight COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_package_batch_preflight_test.py)
add_test(NAME source-faction-compat COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/faction_compat_test.py)
add_test(NAME source-item-icon-preflight COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_icon_preflight_test.py)
add_test(NAME source-item-icon-asset-inventory COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/octo_icon_assets_test.py)
add_test(NAME item-hotfix-validation-report COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_hotfix_report_test.py)
add_test(NAME source-item-effect-catalogue COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_effect_catalogue_test.py)
add_test(NAME source-item-weapon-profile COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_damage_profile_test.py)
add_test(NAME source-item-hotfix-paging COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_hotfix_paging_test.py)
add_test(NAME source-item-basic-compat COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_basic_compat_test.py)
add_test(NAME source-item-batch-staging COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_batch_stage_test.py)
add_test(NAME source-item-catalogue COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_catalog_stage_test.py)
add_test(NAME source-item-icon-provider COMMAND ${LUA_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/source_item_icons_test.lua ${CMAKE_CURRENT_SOURCE_DIR}/client_addons/WoWHybridContent/SourceItemIcons.lua)
# aux's module environments use the client's Lua 5.1 setfenv/getfenv API.
# Keep other Lua tests on the normal interpreter; a generic `lua` may be 5.4.
find_program(LUA51_EXECUTABLE NAMES lua5.1 lua51 luajit)
if(LUA51_EXECUTABLE)
set(AUX_TEST_LUA "${LUA51_EXECUTABLE}")
else()
# Some systems expose Lua 5.1 only as `lua`. The fixture reports a clear
# compatibility failure if this fallback is a newer interpreter.
set(AUX_TEST_LUA "${LUA_EXECUTABLE}")
endif()
add_test(NAME aux-item-scan-no-server-crawl COMMAND ${AUX_TEST_LUA} ${CMAKE_CURRENT_SOURCE_DIR}/tests/aux_item_scan_test.lua ${CMAKE_CURRENT_SOURCE_DIR})
add_test(NAME keep-bindings-after-preset-reset COMMAND ${LUA_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/keep_bindings_test.lua ${CMAKE_CURRENT_SOURCE_DIR})
add_test(NAME source-plain-armor-batch COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/plain_armor_batch_test.py)
add_test(NAME source-hunter-aspect-rows COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/hunter_aspect_rows_test.py)
add_test(NAME source-passive-spell-compat COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/spell_passive_compat_test.py)
add_test(NAME source-crafting-spell-compat COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/spell_crafting_compat_test.py)
add_test(NAME source-content-package-stage COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/content_package_stage_test.py)
add_test(NAME source-content-definition-stage COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/content_definition_stage_test.py)
add_test(NAME source-item-proc-conditions COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/spell_proc_conditions_test.py)
add_test(NAME source-item-proc-compat COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/spell_item_proc_compat_test.py)
add_test(NAME source-spell-duration-reference COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/spell_duration_reference_test.py)
add_test(NAME source-timed-self-buff-compat COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/spell_timed_buff_compat_test.py)
add_test(NAME source-item-permanent-haste-compat COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/spell_item_haste_compat_test.py)
add_test(NAME source-aura-visual-link-candidate COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/aura_visual_link_candidate_test.py)
add_test(NAME source-owned-cast-impact-visual COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/spell_visual_compat_test.py)
add_test(NAME source-self-extra-attack-compat COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/spell_extra_attack_compat_test.py)
add_test(NAME source-melee-extra-attack-proc COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/spell_extra_attack_proc_test.py)
add_test(NAME source-owned-spell-sound COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/spell_sound_compat_test.py)
add_test(NAME source-spell-semantic-comparison COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/spell_content_compare_test.py)
add_test(NAME source-item-bulk-inventory COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_bulk_snapshot_test.py)
add_test(NAME source-typed-content-dependencies COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/turtle_dependency_inventory_test.py)
add_test(NAME source-octo-dependency-batch COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/octo_dependency_batch_test.py)
add_test(NAME source-db2-relation-export COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/db2_relation_export_test.py)
set_tests_properties(source-db2-relation-export PROPERTIES SKIP_RETURN_CODE 77 LABELS local-source-codec)
add_test(NAME source-item-effect-compat COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_effect_compat_test.py)
add_test(NAME source-equipped-item-package COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_equipped_package_test.py)
add_test(NAME source-item-armor-compat COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_armor_compat_test.py)
add_test(NAME source-item-set-compat COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_set_compat_test.py)
add_test(NAME source-restoration-spell-compat COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/spell_restore_compat_test.py)
add_test(NAME source-item-static-spell-compat COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/spell_item_static_compat_test.py)
add_test(NAME source-item-skill-spell-compat COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/spell_item_skill_compat_test.py)
add_test(NAME source-native-codec-isolation COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_codec_isolation_test.py)
# Every CLI-style fixture uses the same configured library as the native host tests.
function(add_entity_writer_fixture name script)
add_test(NAME ${name} COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_codec_driver.py
--fixture "${GW_ENTITY_CODEC}" "${CMAKE_CURRENT_SOURCE_DIR}/tests/${script}")
endfunction()
add_entity_writer_fixture(native-profession-values-writer profession_values_writer_test.py)
set_tests_properties(native-profession-values-writer PROPERTIES SKIP_RETURN_CODE 77 LABELS local-source-codec)
add_test(NAME source-item-enchantment-visual-profile COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_enchantment_visual_profile_test.py)
add_entity_writer_fixture(source-item-enchantment-visual-wire item_enchantment_visual_codec_test.py)
set_tests_properties(source-item-enchantment-visual-wire PROPERTIES SKIP_RETURN_CODE 77 LABELS local-source-codec)
add_entity_writer_fixture(native-peer-player-serializer peer_player_serializer_fixture.py)
set_tests_properties(native-peer-player-serializer PROPERTIES SKIP_RETURN_CODE 77)
add_test(NAME source-codec-protocol-archive COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/codec_protocol_archive_test.py)
add_test(NAME source-native-serializer-abi COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_serializer_test.py)
set_tests_properties(source-native-serializer-abi PROPERTIES TIMEOUT 120 SKIP_RETURN_CODE 77 LABELS local-source-codec RUN_SERIAL TRUE)
add_test(NAME source-loot-native-writers COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/loot_serializer_fixture.py ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_codec_driver.py)
set_tests_properties(source-loot-native-writers PROPERTIES TIMEOUT 30 SKIP_RETURN_CODE 77 LABELS local-source-codec
ENVIRONMENT "GW_TEST_CODEC_PATH=${GW_ENTITY_CODEC}")
add_test(NAME source-unit-target-native-writer COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/unit_target_serializer_fixture.py ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_codec_driver.py)
set_tests_properties(source-unit-target-native-writer PROPERTIES TIMEOUT 30 SKIP_RETURN_CODE 77 LABELS local-source-codec RUN_SERIAL TRUE)
add_test(NAME source-cast-result-profile COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/spell_result_profile_test.py)
add_test(NAME population-audit-replay COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/population_report_test.py)
add_test(NAME console-diagnostic-data-parser COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/console_report_test.py)
add_test(NAME serializer-build-cache COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/codec_build_cache_test.py)
add_test(NAME owned-console-capture COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/console_capture_test.py)
add_test(NAME client-session-state COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/client_session_test.py)
add_test(NAME native-model-diagnostic-probe COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_model_probe_test.py)
add_test(NAME client-world-label-readiness COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/world_label_test.py)
add_test(NAME client-character-control-readiness COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/character_control_test.py)
add_test(NAME turtle-reference-safety-guards COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/turtle_reference_guards_test.py)
add_test(NAME native-local-session-guards COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_test_guard_test.py)
add_test(NAME native-prepared-melee-preservation COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_prepared_melee_test.py)
add_test(NAME native-source-posture-readiness COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_posture_test.py)
add_test(NAME native-world-trace-retention COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_world_trace_test.py)
add_test(NAME native-world-trace-correlation COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/world_trace_test.py)
add_test(NAME native-item-specimen-bounds COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_item_specimen_test.py)
add_test(NAME client-installation-layout COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/client_installation_test.py)
add_test(NAME client-glue-addon-load-probe COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_glue_addon_probe_test.py)
add_test(NAME private-crash-metadata COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/crash_report_test.py)
add_test(NAME engine-session-metadata COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/engine_session_inspect_test.py)
add_test(NAME engine-corpse-state-metadata COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/engine_corpse_state_inspect_test.py)
add_test(NAME engine-corpse-range-observation COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/engine_corpse_range_observation_test.py)
add_test(NAME engine-corpse-object-gate-observation COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/engine_corpse_object_gate_observation_test.py)
add_test(NAME engine-channel-lifecycle-metadata COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/engine_channel_state_test.py)
add_test(NAME engine-send-route-observation COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/engine_send_route_test.py)
add_test(NAME engine-poll-host-rollback COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/engine_poll_host_test.py)
add_test(NAME engine-realm-argument-metadata COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/engine_realm_observation_test.py)
add_test(NAME engine-pipe-argument-metadata COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/engine_pipe_observation_test.py)
add_test(NAME engine-open-realm-metadata COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/engine_open_realm_test.py)
add_test(NAME source-item-appearance-preflight COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_appearance_preflight_test.py)
add_test(NAME paired-equipment-model-formats COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/m2_format_compare_test.py)
add_test(NAME source-equipment-track-conversion COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/m2_track_convert_test.py)
add_test(NAME source-equipment-model-conversion COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/m2_equipment_convert_test.py)
add_test(NAME additive-casc-asset-root COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/casc_asset_package_test.py)
add_test(NAME additive-casc-encoding COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/casc_encoding_stage_test.py)
add_test(NAME additive-casc-local-archive COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/casc_local_archive_test.py)
add_test(NAME additive-casc-download COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/casc_download_stage_test.py)
add_test(NAME native-world-entry-observation COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_world_entry_observation_test.py)
add_test(NAME additive-casc-framed-metadata COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/casc_framed_metadata_test.py)
add_test(NAME native-model-stream-evidence COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_model_stream_evidence_test.py)
add_test(NAME additive-casc-tvfs COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/casc_tvfs_test.py)
add_test(NAME source-item-model-resources COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_model_resources_test.py)
add_test(NAME source-weapon-damage-profile COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_damage_profile_test.py)
if(LUA_EXECUTABLE)
add_test(NAME native-bag-slots COMMAND ${LUA_EXECUTABLE} tests/native_bag_slots_test.lua
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
add_test(NAME native-hud-defaults COMMAND ${LUA_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_hud_defaults_test.lua ${CMAKE_CURRENT_SOURCE_DIR}/client_addons/WoWHybridUI/NativeHUDDefaults.lua)
add_test(NAME native-collection-book-ui COMMAND ${LUA_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_collection_book_test.lua ${CMAKE_CURRENT_SOURCE_DIR})
add_test(NAME native-inspect-equipment-ui COMMAND ${LUA_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_inspect_equipment_test.lua ${CMAKE_CURRENT_SOURCE_DIR}/client_addons/WoWHybridUI/NativeInspectEquipment.lua)
add_test(NAME native-inspect-talents COMMAND ${LUA_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_inspect_talents_test.lua ${CMAKE_CURRENT_SOURCE_DIR})
add_test(NAME native-reputation-diagnostic-probe COMMAND ${LUA_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/gateway_reputation_probe_test.lua ${CMAKE_CURRENT_SOURCE_DIR})
add_test(NAME source-weapon-tooltip COMMAND ${LUA_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/source_weapon_damage_tooltip_test.lua ${CMAKE_CURRENT_SOURCE_DIR})
add_test(NAME source-weapon-comparison-load COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/source_weapon_damage_load_test.py)
add_test(NAME octo-stats-gear-refresh COMMAND ${LUA_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/octo_stats_gear_refresh_test.lua ${CMAKE_CURRENT_SOURCE_DIR})
add_test(NAME turtle-talent-provider COMMAND ${LUA_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/turtle_talent_provider_test.lua ${CMAKE_CURRENT_SOURCE_DIR})
add_test(NAME turtle-talent-points COMMAND ${LUA_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/turtle_talent_points_test.lua ${CMAKE_CURRENT_SOURCE_DIR})
add_test(NAME native-skill-diagnostic-probe COMMAND ${LUA_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/gateway_skill_probe_test.lua ${CMAKE_CURRENT_SOURCE_DIR})
add_test(NAME native-aura-diagnostic-probe COMMAND ${LUA_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/gateway_aura_probe_test.lua ${CMAKE_CURRENT_SOURCE_DIR})
add_test(NAME native-texture-diagnostic-probe COMMAND ${LUA_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/gateway_texture_probe_test.lua ${CMAKE_CURRENT_SOURCE_DIR})
add_test(NAME native-spell-definition-probe COMMAND ${LUA_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/gateway_spell_info_probe_test.lua ${CMAKE_CURRENT_SOURCE_DIR})
add_test(NAME native-item-definition-probe COMMAND ${LUA_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/gateway_item_info_probe_test.lua ${CMAKE_CURRENT_SOURCE_DIR})
add_test(NAME native-bag-diagnostic-probe COMMAND ${LUA_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/gateway_bag_probe_test.lua ${CMAKE_CURRENT_SOURCE_DIR})
endif()
add_executable(talent-addon-control-tests tests/talent_addon_control_test.cpp)
target_link_libraries(talent-addon-control-tests PRIVATE gateway_protocol)
target_compile_options(talent-addon-control-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME talent-addon-control COMMAND talent-addon-control-tests)
add_test(NAME loopback-auth-roster COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/loopback_fixture.py $<TARGET_FILE:gateway-probe>)
set_tests_properties(loopback-auth-roster PROPERTIES TIMEOUT 30)
add_executable(gateway-relay src/relay.cpp)
target_link_libraries(gateway-relay PRIVATE gateway_protocol ZLIB::ZLIB PkgConfig::MARIADB)
target_compile_options(gateway-relay PRIVATE -Wall -Wextra -Wpedantic -Werror)
# Host-independent C ABI first; Wine bootstrap is a separate, opt-in local lab host.
set_target_properties(gateway_protocol PROPERTIES POSITION_INDEPENDENT_CODE ON)
add_library(gateway_native SHARED native/session.cpp native/aura_translation.cpp native/world_translation.cpp native/entity_translation.cpp native/peer_player_translation.cpp native/inventory_translation.cpp native/loot_translation.cpp native/quest_translation.cpp native/social_translation.cpp native/contact_name_translation.cpp)
target_sources(gateway_native PRIVATE native/guild_bank_translation.cpp)
target_sources(gateway_native PRIVATE native/emote_translation.cpp)
target_sources(gateway_native PRIVATE native/radio_player.cpp native/client_update.cpp)
target_include_directories(gateway_native PUBLIC native)
set(GW_QUEST_POI_DATASET_HEADER "" CACHE FILEPATH "Generated SHA256-pinned terrain quest POI header")
if(GW_QUEST_POI_DATASET_HEADER)
get_filename_component(GW_QUEST_POI_DATASET_INPUT "${GW_QUEST_POI_DATASET_HEADER}" ABSOLUTE BASE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
if(NOT EXISTS "${GW_QUEST_POI_DATASET_INPUT}")
message(FATAL_ERROR "Quest POI dataset header does not exist; generate with ops/quest_poi_dataset_header.py")
endif()
target_compile_definitions(gateway_native PRIVATE GW_QUEST_POI_DATASET_HEADER="${GW_QUEST_POI_DATASET_INPUT}")
endif()
set(GW_GAMEOBJECT_AUTHORITY_PROFILE_HEADER "" CACHE FILEPATH "Reviewed immutable local Source game-object authority header")
set(GW_GAMEOBJECT_AUTHORITY_PACKAGE_INCLUDE "" CACHE PATH "Combined codec compatibility-include directory used by the game-object authority")
if(GW_GAMEOBJECT_AUTHORITY_PROFILE_HEADER OR GW_GAMEOBJECT_AUTHORITY_PACKAGE_INCLUDE)
if(NOT GW_GAMEOBJECT_AUTHORITY_PROFILE_HEADER OR NOT GW_GAMEOBJECT_AUTHORITY_PACKAGE_INCLUDE)
message(FATAL_ERROR "Game-object authority requires its header and the same staged package include directory as the codec")
endif()
get_filename_component(GW_GO_AUTHORITY_HEADER "${GW_GAMEOBJECT_AUTHORITY_PROFILE_HEADER}" ABSOLUTE BASE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
get_filename_component(GW_GO_AUTHORITY_INCLUDE "${GW_GAMEOBJECT_AUTHORITY_PACKAGE_INCLUDE}" ABSOLUTE BASE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
if(NOT EXISTS "${GW_GO_AUTHORITY_HEADER}" OR NOT EXISTS "${GW_GO_AUTHORITY_INCLUDE}/gateway/item_sparse_compat.hpp")
message(FATAL_ERROR "Reviewed game-object authority header or combined package include is missing")
endif()
target_compile_definitions(gateway_native PRIVATE GW_GAMEOBJECT_AUTHORITY_PROFILE_HEADER="${GW_GO_AUTHORITY_HEADER}")
target_include_directories(gateway_native BEFORE PRIVATE "${GW_GO_AUTHORITY_INCLUDE}")
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "${GW_GO_AUTHORITY_HEADER}" "${GW_GO_AUTHORITY_INCLUDE}/gateway/item_sparse_compat.hpp")
endif()
set(GW_QUEST_POI_60141_GEOMETRY_HEADER "" CACHE FILEPATH "Opt-in local-only quest 60141 experimental geometry header")
if(GW_QUEST_POI_60141_GEOMETRY_HEADER)
get_filename_component(GW_QUEST_POI_HEADER "${GW_QUEST_POI_60141_GEOMETRY_HEADER}" ABSOLUTE BASE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
if(NOT EXISTS "${GW_QUEST_POI_HEADER}")
message(FATAL_ERROR "Quest 60141 experimental geometry header is missing")
endif()
target_compile_definitions(gateway_native PRIVATE GW_QUEST_POI_60141_GEOMETRY_HEADER="${GW_QUEST_POI_HEADER}")
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "${GW_QUEST_POI_HEADER}")
endif()
target_link_libraries(gateway_native PRIVATE gateway_protocol)
if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
# The ABI-layout guard must fail at link time, not at shared-library load.
target_link_options(gateway_native PRIVATE -Wl,--no-undefined)
endif()
target_compile_options(gateway_native PRIVATE -Wall -Wextra -Wpedantic -Werror)
if(UNIX AND NOT APPLE)
add_library(gateway_native_bootstrap SHARED native/bootstrap.cpp native/engine_bridge.cpp)
set(GW_BOOTSTRAP_PREBUILT_CORE "" CACHE FILEPATH "Qualified existing native core for an isolated bootstrap-only build")
if(GW_BOOTSTRAP_PREBUILT_CORE)
get_filename_component(GW_BOOTSTRAP_CORE_INPUT "${GW_BOOTSTRAP_PREBUILT_CORE}" ABSOLUTE BASE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
if(NOT EXISTS "${GW_BOOTSTRAP_CORE_INPUT}" OR IS_DIRECTORY "${GW_BOOTSTRAP_CORE_INPUT}")
message(FATAL_ERROR "Bootstrap prebuilt core must be an existing qualified shared library")
endif()
add_library(gateway_bootstrap_prebuilt_core SHARED IMPORTED)
set_target_properties(gateway_bootstrap_prebuilt_core PROPERTIES IMPORTED_LOCATION "${GW_BOOTSTRAP_CORE_INPUT}")
find_program(GW_BOOTSTRAP_READELF NAMES readelf llvm-readelf REQUIRED)
execute_process(COMMAND "${GW_BOOTSTRAP_READELF}" -d "${GW_BOOTSTRAP_CORE_INPUT}"
RESULT_VARIABLE GW_BOOTSTRAP_CORE_STATUS OUTPUT_VARIABLE GW_BOOTSTRAP_CORE_DYNAMIC ERROR_VARIABLE GW_BOOTSTRAP_CORE_ERROR)
if(NOT GW_BOOTSTRAP_CORE_STATUS EQUAL 0)
message(FATAL_ERROR "Cannot inspect bootstrap prebuilt core ELF metadata: ${GW_BOOTSTRAP_CORE_ERROR}")
endif()
if(GW_BOOTSTRAP_CORE_DYNAMIC MATCHES "\\(SONAME\\)[^\n]*\\[([^]]+)\\]")
set_target_properties(gateway_bootstrap_prebuilt_core PROPERTIES IMPORTED_SONAME "${CMAKE_MATCH_1}")
else()
# Prevent an absolute DT_NEEDED path when a qualified core has no SONAME.
set_target_properties(gateway_bootstrap_prebuilt_core PROPERTIES IMPORTED_NO_SONAME TRUE)
endif()
target_include_directories(gateway_native_bootstrap PRIVATE native include)
target_link_libraries(gateway_native_bootstrap PRIVATE gateway_bootstrap_prebuilt_core)
# The runtime stages this plugin beside the selected core. Do not encode
# the private build directory or the existing runtime's absolute location.
set_target_properties(gateway_native_bootstrap PROPERTIES BUILD_WITH_INSTALL_RPATH TRUE INSTALL_RPATH "$ORIGIN")
else()
target_link_libraries(gateway_native_bootstrap PRIVATE gateway_native)
endif()
target_compile_options(gateway_native_bootstrap PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_executable(native-ptrace-abi native/ptrace_abi.cpp)
add_test(NAME native-engine-probe-lifecycle COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/engine_probe_test.py $<TARGET_FILE:native-ptrace-abi>)
set_tests_properties(native-engine-probe-lifecycle PROPERTIES TIMEOUT 15)
add_test(NAME native-registration-trace COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_registration_trace_test.py $<TARGET_FILE:native-ptrace-abi>)
set_tests_properties(native-registration-trace PROPERTIES TIMEOUT 15)
add_test(NAME native-namespace-extension COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_namespace_probe_test.py $<TARGET_FILE:native-ptrace-abi>)
set_tests_properties(native-namespace-extension PROPERTIES TIMEOUT 15)
add_test(NAME native-PE-import-unwind COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_pe_bridge_test.py)
set_tests_properties(native-PE-import-unwind PROPERTIES TIMEOUT 90 SKIP_RETURN_CODE 77 LABELS local-client-static)
add_test(NAME native-Windows-channel-policy COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/engine_channel_win_test.py)
set_tests_properties(native-Windows-channel-policy PROPERTIES TIMEOUT 30 SKIP_RETURN_CODE 77 LABELS local-Wine-fixture RUN_SERIAL TRUE)
add_test(NAME native-Windows-packet-host COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/engine_packet_win_test.py)
set_tests_properties(native-Windows-packet-host PROPERTIES TIMEOUT 30 SKIP_RETURN_CODE 77 LABELS local-Wine-fixture)
endif()
add_executable(native-session-tests tests/native_session_abi_test.cpp)
target_link_libraries(native-session-tests PRIVATE gateway_native)
add_test(NAME native-session-abi COMMAND native-session-tests)
add_executable(native-peer-player-pipeline-tests tests/native_peer_player_pipeline_test.cpp)
target_link_libraries(native-peer-player-pipeline-tests PRIVATE gateway_native gateway_protocol ${CMAKE_DL_LIBS})
target_include_directories(native-peer-player-pipeline-tests PRIVATE native)
add_test(NAME native-peer-player-lifecycle COMMAND native-peer-player-pipeline-tests)
add_executable(native-entity-pipeline-tests tests/native_entity_pipeline_test.cpp)
add_executable(persistent-ground-tests tests/persistent_ground_test.cpp)
target_link_libraries(persistent-ground-tests PRIVATE gateway_native gateway_protocol)
add_test(NAME native-persistent-ground-lifecycle COMMAND persistent-ground-tests)
add_executable(d3d12core-proxy-forward-tests tests/d3d12core_proxy_forward_test.c)
target_include_directories(d3d12core-proxy-forward-tests PRIVATE native)
add_test(NAME native-d3d12core-forwarding COMMAND d3d12core-proxy-forward-tests)
add_test(NAME native-client-startup-manifest COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/client_startup_manifest_test.py)
add_test(NAME native-spell-readiness-deadline COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/spell_readiness_deadline_test.py)
target_link_libraries(native-entity-pipeline-tests PRIVATE gateway_native gateway_protocol ${CMAKE_DL_LIBS})
target_compile_definitions(native-entity-pipeline-tests PRIVATE GW_ENTITY_CODEC="${GW_ENTITY_CODEC}")
add_test(NAME native-entity-source-pipeline COMMAND native-entity-pipeline-tests)
add_test(NAME native-profession-source-pipeline COMMAND native-entity-pipeline-tests --profession-only "${GW_ENTITY_CODEC}")
add_test(NAME native-rest-state-source-pipeline COMMAND native-entity-pipeline-tests --rest-only "${GW_ENTITY_CODEC}")
set_tests_properties(native-rest-state-source-pipeline PROPERTIES SKIP_RETURN_CODE 77 LABELS local-source-codec)
set_tests_properties(native-profession-source-pipeline PROPERTIES SKIP_RETURN_CODE 77 LABELS local-source-codec)
add_executable(native-companion-pipeline-tests tests/native_companion_pipeline_test.cpp)
target_link_libraries(native-companion-pipeline-tests PRIVATE gateway_native gateway_protocol ${CMAKE_DL_LIBS})
target_include_directories(native-companion-pipeline-tests PRIVATE native)
add_test(NAME native-companion-source-pipeline COMMAND native-companion-pipeline-tests)
add_test(NAME native-controlled-pet-spellbook COMMAND native-companion-pipeline-tests --controlled-pet "${GW_ENTITY_CODEC}")
set_tests_properties(native-controlled-pet-spellbook PROPERTIES SKIP_RETURN_CODE 77 LABELS local-source-codec)
add_executable(native-spirit-service-visibility-tests tests/native_spirit_service_visibility_test.cpp)
target_link_libraries(native-spirit-service-visibility-tests PRIVATE gateway_native gateway_protocol ${CMAKE_DL_LIBS})
target_include_directories(native-spirit-service-visibility-tests PRIVATE native)
target_compile_definitions(native-spirit-service-visibility-tests PRIVATE GW_ENTITY_CODEC="${GW_ENTITY_CODEC}")
add_test(NAME native-spirit-service-visibility COMMAND native-spirit-service-visibility-tests)
set_tests_properties(native-spirit-service-visibility PROPERTIES SKIP_RETURN_CODE 77 LABELS local-source-codec)
add_entity_writer_fixture(source-corpse-writer-framing corpse_serializer_fixture.py)
set_tests_properties(source-corpse-writer-framing PROPERTIES SKIP_RETURN_CODE 77 LABELS local-source-codec)
set_tests_properties(native-entity-source-pipeline PROPERTIES SKIP_RETURN_CODE 77 LABELS local-source-codec)
add_executable(native-inventory-sort-tests tests/native_inventory_sort_test.cpp)
target_link_libraries(native-inventory-sort-tests PRIVATE gateway_native gateway_protocol ${CMAKE_DL_LIBS})
target_include_directories(native-inventory-sort-tests PRIVATE native)
add_test(NAME native-inventory-sort COMMAND native-inventory-sort-tests)
add_executable(native-inventory-tests tests/native_inventory_test.cpp)
target_link_libraries(native-inventory-tests PRIVATE gateway_native gateway_protocol ${CMAKE_DL_LIBS})
target_compile_definitions(native-inventory-tests PRIVATE GW_ENTITY_CODEC="${GW_ENTITY_CODEC}")
add_test(NAME native-owned-inventory-pipeline COMMAND native-inventory-tests)
add_test(NAME native-keyring-source-projection COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/keyring_projection_test.py --protocol-library $<TARGET_FILE:gateway_protocol>)
add_test(NAME native-keyring-codec-writer COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/keyring_serializer_fixture.py)
set_tests_properties(native-keyring-codec-writer PROPERTIES SKIP_RETURN_CODE 77 LABELS local-source-codec ENVIRONMENT "GW_TEST_CODEC_PATH=${GW_ENTITY_CODEC}")
set_tests_properties(native-owned-inventory-pipeline PROPERTIES SKIP_RETURN_CODE 77 LABELS local-source-codec)
add_executable(local-guild-peer tools/local_guild_peer.cpp)
target_link_libraries(local-guild-peer PRIVATE gateway_protocol)
target_compile_options(local-guild-peer PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_executable(local-fixture-recovery tools/local_fixture_recovery.cpp)
target_link_libraries(local-fixture-recovery PRIVATE gateway_protocol)
target_compile_options(local-fixture-recovery PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_executable(local-fixture-praxis-teleport tools/local_fixture_praxis_teleport.cpp)
target_link_libraries(local-fixture-praxis-teleport PRIVATE gateway_protocol)
target_compile_options(local-fixture-praxis-teleport PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_executable(native-chat-packet-tests tests/native_chat_packet_test.cpp)
add_executable(guild-bank-state-tests tests/guild_bank_state_test.cpp)
target_link_libraries(guild-bank-state-tests PRIVATE gateway_protocol)
add_test(NAME source-guild-bank-snapshots COMMAND guild-bank-state-tests)
add_executable(native-guild-bank-packet-tests tests/native_guild_bank_packet_test.cpp)
target_link_libraries(native-guild-bank-packet-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-guild-bank-packet-tests PRIVATE native)
target_compile_options(native-guild-bank-packet-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME native-guild-bank-frame-codecs COMMAND native-guild-bank-packet-tests)
add_executable(native-slash-command-tests tests/native_slash_command_test.cpp)
target_link_libraries(native-slash-command-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-slash-command-tests PRIVATE native)
target_compile_options(native-slash-command-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME native-slash-commands COMMAND native-slash-command-tests)
add_test(NAME slash-command-wire-admission COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/slash_command_wire_admission_test.py)
add_test(NAME octo-slash-coverage COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/octo_slash_coverage_test.py)
target_link_libraries(native-chat-packet-tests PRIVATE gateway_native gateway_protocol)
add_executable(native-guild-roster-packet-tests tests/native_guild_roster_packet_test.cpp)
target_link_libraries(native-guild-roster-packet-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-guild-roster-packet-tests PRIVATE native)
add_test(NAME native-guild-roster-packets COMMAND native-guild-roster-packet-tests)
add_executable(native-guild-rank-edit-tests tests/native_guild_rank_edit_test.cpp)
target_link_libraries(native-guild-rank-edit-tests PRIVATE gateway_protocol)
add_test(NAME native-guild-rank-edit COMMAND native-guild-rank-edit-tests)
add_executable(native-guild-lifecycle-tests tests/native_guild_lifecycle_test.cpp)
target_link_libraries(native-guild-lifecycle-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-guild-lifecycle-tests PRIVATE native)
add_test(NAME native-guild-lifecycle COMMAND native-guild-lifecycle-tests)
add_executable(native-guild-control-cold-query-tests tests/native_guild_control_cold_query_test.cpp)
target_link_libraries(native-guild-control-cold-query-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-guild-control-cold-query-tests PRIVATE native)
add_test(NAME native-guild-control-cold-query COMMAND native-guild-control-cold-query-tests)
if(LUA_EXECUTABLE)
add_test(NAME native-guild-rank-feedback COMMAND ${LUA_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_guild_rank_intent_test.lua ${CMAKE_CURRENT_SOURCE_DIR}/native/ui/guild_rank_intent.lua)
endif()
add_executable(native-guild-ranks-packet-tests tests/native_guild_ranks_packet_test.cpp)
target_link_libraries(native-guild-ranks-packet-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-guild-ranks-packet-tests PRIVATE native)
add_test(NAME native-guild-ranks-opt-in COMMAND native-guild-ranks-packet-tests)
add_executable(channel-lifecycle-tests tests/channel_lifecycle_test.cpp)
target_link_libraries(channel-lifecycle-tests PRIVATE gateway_protocol)
add_test(NAME source-native-channel-lifecycle COMMAND channel-lifecycle-tests)
target_include_directories(native-chat-packet-tests PRIVATE native)
add_test(NAME native-chat-state-codecs COMMAND native-chat-packet-tests)
add_executable(native-emote-packet-tests tests/native_emote_packet_test.cpp)
target_link_libraries(native-emote-packet-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-emote-packet-tests PRIVATE native)
target_compile_options(native-emote-packet-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME native-emote-state-codecs COMMAND native-emote-packet-tests)
add_executable(native-talent-packet-tests tests/native_talent_packet_test.cpp)
target_link_libraries(native-talent-packet-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-talent-packet-tests PRIVATE native)
add_test(NAME native-turtle-talent-pipeline COMMAND native-talent-packet-tests)
add_executable(native-talent-far-transfer-tests tests/native_talent_far_transfer_test.cpp)
target_link_libraries(native-talent-far-transfer-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-talent-far-transfer-tests PRIVATE native)
add_test(NAME native-talent-far-transfer COMMAND native-talent-far-transfer-tests)
add_executable(native-pvp-statistics-tests tests/native_pvp_statistics_test.cpp)
target_link_libraries(native-pvp-statistics-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-pvp-statistics-tests PRIVATE native)
add_test(NAME native-pvp-statistics COMMAND native-pvp-statistics-tests)
add_test(NAME native-pvp-statistics-writer COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/pvp_statistics_serializer_test.py)
set_tests_properties(native-pvp-statistics-writer PROPERTIES SKIP_RETURN_CODE 77 ENVIRONMENT "GW_TEST_CODEC_PATH=${GW_ENTITY_CODEC}")
add_test(NAME native-pet-stable-writer COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/pet_stable_serializer_test.py)
set_tests_properties(native-pet-stable-writer PROPERTIES SKIP_RETURN_CODE 77 ENVIRONMENT "GW_TEST_CODEC_PATH=${GW_ENTITY_CODEC}")
add_test(NAME native-self-party-type-writer COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/self_party_type_serializer_test.py)
set_tests_properties(native-self-party-type-writer PROPERTIES SKIP_RETURN_CODE 77 ENVIRONMENT "GW_TEST_CODEC_PATH=${GW_ENTITY_CODEC}")
add_executable(native-who-tests tests/native_who_test.cpp)
target_link_libraries(native-who-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-who-tests PRIVATE native)
add_test(NAME native-who-translation COMMAND native-who-tests)
add_executable(native-gameplay-packet-tests tests/native_gameplay_packet_test.cpp)
target_link_libraries(native-gameplay-packet-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-gameplay-packet-tests PRIVATE native)
add_test(NAME native-gameplay-guid-lifecycle COMMAND native-gameplay-packet-tests)
add_executable(native-trainer-offer-filter-tests tests/native_trainer_offer_filter_test.cpp)
target_link_libraries(native-trainer-offer-filter-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-trainer-offer-filter-tests PRIVATE native)
add_test(NAME native-trainer-offer-filter COMMAND native-trainer-offer-filter-tests)
add_executable(native-trainer-success-refresh-tests tests/native_trainer_success_refresh_test.cpp)
target_link_libraries(native-trainer-success-refresh-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-trainer-success-refresh-tests PRIVATE native)
add_test(NAME native-trainer-success-refresh COMMAND native-trainer-success-refresh-tests)
add_test(NAME tradeskill-trainer-step-catalog COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/tradeskill_trainer_step_catalog_test.py)
add_executable(native-area-trigger-relay-tests tests/native_area_trigger_relay_test.cpp)
target_link_libraries(native-area-trigger-relay-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-area-trigger-relay-tests PRIVATE native)
add_test(NAME native-area-trigger-observed-relay COMMAND native-area-trigger-relay-tests)
add_test(NAME native-public-combat-diagnostics COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_public_combat_diagnostics_test.py $<TARGET_FILE:native-gameplay-packet-tests>)
add_test(NAME source-disarm-aura-family-profile COMMAND ${Python3_EXECUTABLE} -m unittest aura_disarm_profile_test)
set_tests_properties(source-disarm-aura-family-profile PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}/ops:${CMAKE_CURRENT_SOURCE_DIR}/tests")
add_executable(native-warrior-cooldown-pipeline-tests tests/native_warrior_cooldown_pipeline_test.cpp)
target_link_libraries(native-warrior-cooldown-pipeline-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-warrior-cooldown-pipeline-tests PRIVATE native)
target_compile_options(native-warrior-cooldown-pipeline-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME native-warrior-cooldown-modifier-lifecycle COMMAND native-warrior-cooldown-pipeline-tests)
add_executable(native-effect-points-pipeline-tests tests/native_effect_points_pipeline_test.cpp)
target_link_libraries(native-effect-points-pipeline-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-effect-points-pipeline-tests PRIVATE native)
target_compile_options(native-effect-points-pipeline-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME native-effect-points-modifier-lifecycle COMMAND native-effect-points-pipeline-tests)
add_test(NAME source-warrior-cooldown-modifier-profile COMMAND ${Python3_EXECUTABLE} -m unittest warrior_cooldown_modifier_test prepare_warrior_cooldown_modifiers_test warrior_cooldown_private_bits_test)
set_tests_properties(source-warrior-cooldown-modifier-profile PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}/ops:${CMAKE_CURRENT_SOURCE_DIR}/tests")
add_test(NAME native-source-aura-state-serializer COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/aura_state_serializer_test.py)
set_tests_properties(native-source-aura-state-serializer PROPERTIES SKIP_RETURN_CODE 77 ENVIRONMENT "GW_TEST_CODEC_PATH=${GW_ENTITY_CODEC};PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}/tests")
add_test(NAME source-warrior-cooldown-build-identity-guard COMMAND ${Python3_EXECUTABLE} -m unittest warrior_cooldown_build_guard_test)
set_tests_properties(source-warrior-cooldown-build-identity-guard PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}/ops:${CMAKE_CURRENT_SOURCE_DIR}/tests")
add_executable(name-response-contract-tests tests/name_response_contract_test.cpp)
target_link_libraries(name-response-contract-tests PRIVATE gateway_protocol)
target_compile_options(name-response-contract-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME source-name-response-contract COMMAND name-response-contract-tests)
add_executable(native-name-response-pipeline-tests tests/native_name_response_pipeline_test.cpp)
target_link_libraries(native-name-response-pipeline-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-name-response-pipeline-tests PRIVATE native)
target_compile_options(native-name-response-pipeline-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME native-name-response-failure-isolation COMMAND native-name-response-pipeline-tests)
add_test(NAME native-optional-entity-snapshot COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/engine_pipe_entity_snapshot_test.py)
add_executable(aura-state-tests tests/aura_state_test.cpp)
target_link_libraries(aura-state-tests PRIVATE gateway_protocol)
target_compile_options(aura-state-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME source-native-named-aura-states COMMAND aura-state-tests)
add_executable(warrior-cooldown-modifiers-tests tests/warrior_cooldown_modifiers_test.cpp)
target_link_libraries(warrior-cooldown-modifiers-tests PRIVATE gateway_protocol)
target_compile_options(warrior-cooldown-modifiers-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME source-warrior-cooldown-modifier-wire COMMAND warrior-cooldown-modifiers-tests)
add_executable(spell-location-targets-tests tests/spell_location_targets_test.cpp)
target_link_libraries(spell-location-targets-tests PRIVATE gateway_native gateway_protocol ${CMAKE_DL_LIBS})
target_include_directories(spell-location-targets-tests PRIVATE native)
add_test(NAME native-spell-source-destination-targets COMMAND spell-location-targets-tests)
set_tests_properties(native-spell-source-destination-targets PROPERTIES SKIP_RETURN_CODE 77 ENVIRONMENT "GW_TEST_CODEC_PATH=${GW_ENTITY_CODEC}")
add_executable(native-movement-gate-tests tests/native_movement_gate_test.cpp)
target_link_libraries(native-movement-gate-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-movement-gate-tests PRIVATE native)
add_test(NAME native-movement-ownership-gate COMMAND native-movement-gate-tests)
add_executable(native-speed-change-tests tests/native_speed_change_test.cpp)
target_link_libraries(native-speed-change-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-speed-change-tests PRIVATE native)
add_test(NAME native-controller-speed-changes COMMAND native-speed-change-tests)
add_executable(native-movement-mode-tests tests/native_movement_mode_test.cpp)
target_link_libraries(native-movement-mode-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-movement-mode-tests PRIVATE native)
add_test(NAME native-controller-movement-modes COMMAND native-movement-mode-tests)
add_executable(native-swimming-vertical-contract-tests tests/native_swimming_vertical_contract_test.cpp)
target_link_libraries(native-swimming-vertical-contract-tests PRIVATE gateway_protocol)
add_test(NAME native-swimming-vertical-contract COMMAND native-swimming-vertical-contract-tests)
add_executable(native-movement-contract-matrix-tests tests/native_movement_contract_matrix_test.cpp)
target_link_libraries(native-movement-contract-matrix-tests PRIVATE gateway_protocol)
add_test(NAME native-movement-contract-matrix COMMAND native-movement-contract-matrix-tests)
add_executable(swimming-near-teleport-tests tests/swimming_near_teleport_test.cpp)
target_link_libraries(swimming-near-teleport-tests PRIVATE gateway_protocol)
target_compile_options(swimming-near-teleport-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME source-swimming-near-teleport COMMAND swimming-near-teleport-tests)
add_executable(native-movement-opaque-extension-tests tests/native_movement_opaque_extensions_test.cpp)
target_link_libraries(native-movement-opaque-extension-tests PRIVATE gateway_protocol)
add_test(NAME native-movement-opaque-extensions COMMAND native-movement-opaque-extension-tests)
add_executable(native-movement-transport-tests tests/native_movement_transport_test.cpp)
target_link_libraries(native-movement-transport-tests PRIVATE gateway_protocol)
add_test(NAME native-movement-transport COMMAND native-movement-transport-tests)
add_executable(native-movement-route-matrix-tests tests/native_movement_route_matrix_test.cpp)
target_link_libraries(native-movement-route-matrix-tests PRIVATE gateway_native gateway_protocol)
add_test(NAME native-movement-route-matrix COMMAND native-movement-route-matrix-tests)
add_test(NAME native-movement-wire-opcode-classifier COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_movement_opcode_predicate_test.py)
add_executable(native-logout-tests tests/native_logout_test.cpp)
target_link_libraries(native-logout-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-logout-tests PRIVATE native)
add_test(NAME native-logout-lifecycle COMMAND native-logout-tests)
add_test(NAME native-source-counter-dispatch COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_packet_dispatch_counters_test.py ${CMAKE_BINARY_DIR})
set_tests_properties(native-source-counter-dispatch PROPERTIES TIMEOUT 120)
add_test(NAME native-public-guild-context COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_club_profile_admission_test.py ${CMAKE_BINARY_DIR})
set_tests_properties(native-public-guild-context PROPERTIES TIMEOUT 60)
add_executable(native-gameobject-loot-tests tests/native_gameobject_loot_test.cpp)
target_include_directories(native-gameobject-loot-tests PRIVATE native)
target_link_libraries(native-gameobject-loot-tests PRIVATE gateway_native gateway_protocol ${CMAKE_DL_LIBS})
add_entity_writer_fixture(native-gameobject-loot-writer native_gameobject_loot_writer_test.py)
set_tests_properties(native-gameobject-loot-writer PROPERTIES SKIP_RETURN_CODE 77)
add_executable(native-loot-tests tests/native_loot_test.cpp)
target_link_libraries(native-loot-tests PRIVATE gateway_native gateway_protocol ${CMAKE_DL_LIBS})
target_include_directories(native-loot-tests PRIVATE native)
target_compile_definitions(native-loot-tests PRIVATE GW_ENTITY_CODEC="${GW_ENTITY_CODEC}")
add_test(NAME native-creature-loot-pipeline COMMAND native-loot-tests)
add_executable(native-loot-receipt-tests tests/native_loot_receipt_test.cpp)
target_include_directories(native-loot-receipt-tests PRIVATE native)
target_link_libraries(native-loot-receipt-tests PRIVATE gateway_protocol)
add_test(NAME native-loot-receipt-delivery COMMAND native-loot-receipt-tests)
if(LUA_EXECUTABLE)
add_test(NAME native-loot-receipt-chat COMMAND ${LUA_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_loot_receipts_test.lua ${CMAKE_CURRENT_SOURCE_DIR}/client_addons/WoWHybridUI/NativeLootReceipts.lua)
endif()
add_executable(native-loot-roll-tests tests/native_loot_roll_test.cpp)
target_link_libraries(native-loot-roll-tests PRIVATE gateway_native gateway_protocol ${CMAKE_DL_LIBS})
target_include_directories(native-loot-roll-tests PRIVATE native)
target_compile_definitions(native-loot-roll-tests PRIVATE GW_ROLL_TEST_WORLD GW_ROLL_TEST_CODEC="${GW_ENTITY_CODEC}")
add_test(NAME native-group-roll-lifecycle COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_loot_roll_test.py $<TARGET_FILE:native-loot-roll-tests>)
set_tests_properties(native-group-roll-lifecycle PROPERTIES SKIP_RETURN_CODE 77)
add_entity_writer_fixture(native-group-roll-writer-framing loot_roll_serializer_fixture.py)
set_tests_properties(native-group-roll-writer-framing PROPERTIES SKIP_RETURN_CODE 77)
set_tests_properties(native-creature-loot-pipeline PROPERTIES SKIP_RETURN_CODE 77 LABELS local-source-codec)
add_executable(native-corpse-lifecycle-tests tests/native_corpse_lifecycle_test.cpp)
target_link_libraries(native-corpse-lifecycle-tests PRIVATE gateway_native gateway_protocol ${CMAKE_DL_LIBS})
target_include_directories(native-corpse-lifecycle-tests PRIVATE native)
target_compile_definitions(native-corpse-lifecycle-tests PRIVATE GW_ENTITY_CODEC="${GW_ENTITY_CODEC}")
add_test(NAME native-corpse-release-lifecycle COMMAND native-corpse-lifecycle-tests)
set_tests_properties(native-corpse-release-lifecycle PROPERTIES SKIP_RETURN_CODE 77 LABELS local-source-codec)
add_executable(engine-realm-context-tests tests/engine_realm_context_test.c)
target_include_directories(engine-realm-context-tests PRIVATE native)
add_test(NAME engine-authenticated-realm-context COMMAND engine-realm-context-tests)
add_executable(realm-tests tests/realm_tests.cpp)
target_link_libraries(realm-tests PRIVATE gateway_protocol)
add_test(NAME realm-list-codec COMMAND realm-tests)
add_executable(native-realm-driver tests/native_realm_driver.cpp)
target_link_libraries(native-realm-driver PRIVATE gateway_native gateway_protocol OpenSSL::Crypto ${CMAKE_DL_LIBS})
add_test(NAME native-realm-refresh COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/loopback_fixture.py $<TARGET_FILE:native-realm-driver> --realm-refresh)
set_tests_properties(native-realm-refresh PROPERTIES TIMEOUT 30)
add_test(NAME native-auth-discovery-selection COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/loopback_fixture.py $<TARGET_FILE:native-realm-driver> --discover)
set_tests_properties(native-auth-discovery-selection PROPERTIES TIMEOUT 30)
add_test(NAME native-auth-memory COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/loopback_fixture.py $<TARGET_FILE:native-realm-driver> --discover-memory)
set_tests_properties(native-auth-memory PROPERTIES TIMEOUT 30)
add_test(NAME native-auth-memory-ipv4 COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/loopback_fixture.py $<TARGET_FILE:native-realm-driver> --discover-memory-ipv4)
set_tests_properties(native-auth-memory-ipv4 PROPERTIES TIMEOUT 30)
add_test(NAME native-wire-rejected-update COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/loopback_fixture.py $<TARGET_FILE:native-realm-driver> --wire-reject-update)
set_tests_properties(native-wire-rejected-update PROPERTIES TIMEOUT 60)
add_test(NAME native-ordered-packet-stream COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/loopback_fixture.py $<TARGET_FILE:native-realm-driver> --stream)
set_tests_properties(native-ordered-packet-stream PROPERTIES TIMEOUT 30)
add_test(NAME native-session-lifetime COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/loopback_fixture.py $<TARGET_FILE:native-realm-driver> --lifetime)
set_tests_properties(native-session-lifetime PROPERTIES TIMEOUT 30)
add_test(NAME native-full-account-same-character-reentry COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/loopback_fixture.py $<TARGET_FILE:native-realm-driver> --account-reentry)
set_tests_properties(native-full-account-same-character-reentry PROPERTIES TIMEOUT 15)
add_executable(character-init-driver tests/character_init_driver.cpp)
target_link_libraries(character-init-driver PRIVATE gateway_protocol)
add_test(NAME source-glue-initialization-parity COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/glue_serializer_fixture.py $<TARGET_FILE:character-init-driver>)
set_tests_properties(source-glue-initialization-parity PROPERTIES TIMEOUT 30 SKIP_RETURN_CODE 77 LABELS local-client-static)
add_executable(legacy-stream-tests tests/legacy_stream_test.cpp)
target_link_libraries(legacy-stream-tests PRIVATE gateway_protocol)
add_test(NAME transport-independent-turtle-framing COMMAND legacy-stream-tests)
add_test(NAME native-socket-free-world-auth COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/loopback_fixture.py $<TARGET_FILE:native-realm-driver> --wire)
set_tests_properties(native-socket-free-world-auth PROPERTIES TIMEOUT 30)
add_test(NAME native-sdhd-preference-restart COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/loopback_fixture.py $<TARGET_FILE:native-realm-driver> --sdhd-preference)
set_tests_properties(native-sdhd-preference-restart PROPERTIES TIMEOUT 30)
add_test(NAME native-same-transport-logout-reentry COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/loopback_fixture.py $<TARGET_FILE:native-realm-driver> --wire-reentry)
set_tests_properties(native-same-transport-logout-reentry PROPERTIES TIMEOUT 15)
add_test(NAME native-consecration-across-character-logouts COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/loopback_fixture.py $<TARGET_FILE:native-realm-driver> --cast-reentry)
set_tests_properties(native-consecration-across-character-logouts PROPERTIES TIMEOUT 15 SKIP_RETURN_CODE 77 ENVIRONMENT "GW_TEST_CODEC_PATH=${GW_ENTITY_CODEC}")
add_test(NAME native-talent-control-ownership COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/loopback_fixture.py $<TARGET_FILE:native-realm-driver> --wire-talent)
set_tests_properties(native-talent-control-ownership PROPERTIES TIMEOUT 30)
if(UNIX AND NOT APPLE AND EXISTS "/usr/include/wine/unixlib.h")
add_library(gateway_wine_wire SHARED native/wine_wire_unix.c native/wine_wire_registry.cpp)
target_include_directories(gateway_wine_wire PRIVATE native include)
if(GW_LOGIN_INCLUDE_DIRECTORY)
target_include_directories(gateway_wine_wire BEFORE PRIVATE "${GW_LOGIN_INCLUDE_DIRECTORY}")
endif()
target_include_directories(gateway_wine_wire SYSTEM PRIVATE /usr/include/wine/windows)
target_link_libraries(gateway_wine_wire PRIVATE gateway_native ${CMAKE_DL_LIBS})
set_target_properties(gateway_wine_wire PROPERTIES BUILD_RPATH_USE_ORIGIN TRUE)
target_compile_options(gateway_wine_wire PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_executable(native-wire-memory-driver tests/native_wire_memory_driver.cpp)
target_include_directories(native-wire-memory-driver PRIVATE native)
target_link_libraries(native-wire-memory-driver PRIVATE gateway_wine_wire OpenSSL::Crypto)
target_compile_options(native-wire-memory-driver PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME native-wire-memory-auth COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/loopback_fixture.py $<TARGET_FILE:native-wire-memory-driver> --auth-host)
set_tests_properties(native-wire-memory-auth PROPERTIES TIMEOUT 30)
add_test(NAME native-wire-memory-auth-ipv4 COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/loopback_fixture.py $<TARGET_FILE:native-wire-memory-driver> --wire-memory-ipv4)
set_tests_properties(native-wire-memory-auth-ipv4 PROPERTIES TIMEOUT 30)
endif()
add_test(NAME native-Wine-wire-control COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/wine_wire_test.py)
add_test(NAME engine-pipe-setup-metadata COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/engine_pipe_setup_observation_test.py)
add_test(NAME engine-endpoint-copy-code COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/engine_endpoint_code_observation_test.py)
add_test(NAME engine-endpoint-defaults COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/engine_endpoint_defaults_test.py)
add_test(NAME native-broadcast-text-db-reply COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/broadcast_text_db_reply_test.py)
set_tests_properties(native-broadcast-text-db-reply PROPERTIES SKIP_RETURN_CODE 77 ENVIRONMENT "GW_TEST_CODEC_PATH=${GW_ENTITY_CODEC}")
add_test(NAME source-spell-aura-restrictions-hotfix COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/spell_aura_restrictions_hotfix_fixture.py)
set_tests_properties(source-spell-aura-restrictions-hotfix PROPERTIES SKIP_RETURN_CODE 77 ENVIRONMENT "GW_TEST_CODEC_PATH=${GW_ENTITY_CODEC}" LABELS local-source-codec)
add_test(NAME source-native-auth-initialization COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/auth_initialization_serializer_test.py)
add_test(NAME source-item-initial-containment COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_initial_containment_test.py)
set_tests_properties(source-item-initial-containment PROPERTIES TIMEOUT 30 SKIP_RETURN_CODE 77 LABELS local-source-codec RUN_SERIAL TRUE)
add_test(NAME source-item-instance-flags COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_instance_flags_serializer_test.py)
set_tests_properties(source-item-instance-flags PROPERTIES TIMEOUT 30 SKIP_RETURN_CODE 77 LABELS local-source-codec RUN_SERIAL TRUE)
add_test(NAME client-development-build-checkpoint COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/development_client_build_test.py)
add_test(NAME source-item-flat-armor-penetration COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/spell_item_resistance_compat_test.py)
add_test(NAME source-server-scripted-aura COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/spell_scripted_aura_compat_test.py)
add_test(NAME source-existing-extra-attack-proc COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/existing_extra_attack_proc_test.py)
set_tests_properties(source-native-auth-initialization PROPERTIES TIMEOUT 15 SKIP_RETURN_CODE 77 LABELS local-client-static)
add_test(NAME engine-account-credential-header COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/engine_account_credentials_test.py)
add_test(NAME engine-original-local-login-binding COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/engine_login_input_binding_test.py)
add_test(NAME native-original-login-controller COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_login_controller_test.py)
add_test(NAME native-manual-original-login COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_manual_login_test.py)
add_test(NAME launcher-preset-completion-wait COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/launcher_preset_wait_test.py)
add_test(NAME warrior-fixed-action-bar-ui COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/warrior_action_bar_ui_test.py)
add_test(NAME native-client-exit-lifecycle COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_client_lifecycle_test.py)
add_test(NAME launcher-shutdown-lifecycle COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/launcher_shutdown_lifecycle_test.py)
add_test(NAME launcher-post-login-readiness COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/launcher_post_login_readiness_test.py)
add_test(NAME launcher-visible-frontend COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/forever_launcher_test.py)
add_test(NAME launcher-original-bootstrap-popup COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/bootstrap_popup_ack_test.py)
add_test(NAME launcher-issue-reporter-visibility COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/issue_reporter_visibility_test.py)
set_tests_properties(launcher-issue-reporter-visibility PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}/ops:${CMAKE_CURRENT_SOURCE_DIR}/tests")
add_test(NAME linux-self-contained-client-package COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/linux_client_package_test.py)
add_test(NAME native-engine-peer-metadata COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/engine_pipe_peer_metadata_test.py)
add_test(NAME source-named-aura-family-profile COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/aura_source_family_profile_test.py)
add_test(NAME native-manual-gameplay-ready COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_manual_gameplay_ready_test.py)
add_test(NAME turtle-item-snapshot-dependency-bridge COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/turtle_item_snapshot_bridge_test.py)
add_test(NAME owned-octo-character-import COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/octo_character_import_test.py)
add_test(NAME engine-ordinary-login-input-metadata COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/engine_login_input_observation_test.py)
add_test(NAME engine-readiness-write-watch COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/engine_readiness_watch_test.py $<TARGET_FILE:native-ptrace-abi>)
set_tests_properties(engine-readiness-write-watch PROPERTIES TIMEOUT 12)
add_test(NAME engine-race-class-table-watch COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/engine_race_class_watch_test.py $<TARGET_FILE:native-ptrace-abi>)
set_tests_properties(engine-race-class-table-watch PROPERTIES TIMEOUT 12)
add_test(NAME engine-race-validator-code-observation COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/engine_race_validator_observation_test.py)
add_test(NAME engine-pipe-adapter-binding COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/engine_pipe_host_test.py)
add_test(NAME engine-listener-observer-binding COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/engine_listener_host_test.py)
add_test(NAME native-Wine-account-worker COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/wine_wire_test.py --auth-host)
add_test(NAME native-Wine-session-retirement COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/wine_session_retirement_test.py)
add_test(NAME native-login-patch-transaction COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/direct_two_site_transaction_test.py)
add_test(NAME native-stock-login-retirement COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/stock_login_coordinator_test.py)
add_test(NAME native-login-terminal-result-journal COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/wine_login_result_journal_test.py)
add_test(NAME native-login-failed-header-latch COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/wine_account_failure_latch_test.py)
add_custom_target(account-lease-lifetime-tests
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/account_lease_lifetime_test.py --build ${CMAKE_CURRENT_BINARY_DIR}/account-lease-lifetime-fixture)
add_test(NAME account-lease-lifetime COMMAND ${CMAKE_CURRENT_BINARY_DIR}/account-lease-lifetime-fixture)
add_test(NAME source-account-generation-cancel COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/source_account_cancel_test.py)
add_test(NAME source-account-cancel-query-dispatch COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/source_account_cancel_dispatch_test.py)
add_test(NAME native-login-result-report COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/diagnostics_login_report_test.py)
if(LUA_EXECUTABLE)
add_test(NAME native-source-login-failure-dialog COMMAND ${LUA_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/source_realm_failure_ui_test.lua ${CMAKE_CURRENT_SOURCE_DIR}/compat/glue/source_realm_glue_adapter.lua)
endif()
add_test(NAME launcher-account-generations COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/launcher_account_generation_test.py)
add_test(NAME native-session-retirement-host COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/engine_session_retirement_test.py)
add_test(NAME launcher-two-press-account-switch COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/launcher_account_switch_test.py)
set_tests_properties(launcher-account-generations native-session-retirement-host launcher-two-press-account-switch PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}/ops:${CMAKE_CURRENT_SOURCE_DIR}/tests")
add_test(NAME native-Windows-memory-credentials COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_account_memory_test.py)
set_tests_properties(native-Windows-memory-credentials PROPERTIES TIMEOUT 30 SKIP_RETURN_CODE 77 LABELS local-Wine-fixture RUN_SERIAL TRUE)
add_test(NAME native-Wine-world-transport COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/wine_wire_test.py --network)
set_tests_properties(native-Wine-wire-control native-Wine-world-transport native-Wine-account-worker PROPERTIES TIMEOUT 60 SKIP_RETURN_CODE 77 LABELS local-Wine-fixture RUN_SERIAL TRUE)
add_executable(native-aura-tests tests/native_aura_test.cpp)
add_executable(roster-log-stall-tests tests/roster_log_stall_test.cpp)
target_include_directories(roster-log-stall-tests PRIVATE native)
target_link_libraries(roster-log-stall-tests PRIVATE gateway_native gateway_protocol)
add_test(NAME roster-log-stall-boundary COMMAND roster-log-stall-tests)
add_executable(native-roster-diagnostics-tests tests/native_roster_diagnostics_test.cpp)
target_include_directories(native-roster-diagnostics-tests PRIVATE native)
target_link_libraries(native-roster-diagnostics-tests PRIVATE gateway_native gateway_protocol)
add_test(NAME native-public-roster-diagnostics COMMAND native-roster-diagnostics-tests)
add_test(NAME native-mixed-partial-roster-view COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/loopback_fixture.py $<TARGET_FILE:native-realm-driver> --wire-partial-roster)
set_tests_properties(native-mixed-partial-roster-view PROPERTIES TIMEOUT 30)
target_link_libraries(native-aura-tests PRIVATE gateway_native gateway_protocol ${CMAKE_DL_LIBS})
target_compile_options(native-aura-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME native-source-aura-slots COMMAND native-aura-tests)
set_tests_properties(native-source-aura-slots PROPERTIES SKIP_RETURN_CODE 77 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
ENVIRONMENT "GW_TEST_CODEC_PATH=${GW_ENTITY_CODEC}" LABELS local-source-codec)
add_executable(native-aura-companion-tests tests/native_aura_companion_test.cpp)
target_link_libraries(native-aura-companion-tests PRIVATE gateway_native gateway_protocol)
target_compile_options(native-aura-companion-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME native-source-aura-companions COMMAND native-aura-companion-tests)
add_test(NAME source-simple-aura-profile COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/aura_definition_profile_test.py)
add_test(NAME source-aura-visual-profile COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/aura_visual_profile_test.py)
add_test(NAME source-package-aura-definitions COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/aura_package_definition_test.py)
add_executable(native-instance-notifications-tests tests/native_instance_notifications_test.cpp)
target_link_libraries(native-instance-notifications-tests PRIVATE gateway_native gateway_protocol)
add_test(NAME native-instance-notifications COMMAND native-instance-notifications-tests)
add_executable(native-source-feedback-tests tests/source_feedback_test.cpp)
target_link_libraries(native-source-feedback-tests PRIVATE gateway_native gateway_protocol)
add_test(NAME native-source-server-feedback COMMAND native-source-feedback-tests)
add_executable(native-combat-log-routes-tests tests/native_combat_log_routes_test.cpp)
target_link_libraries(native-combat-log-routes-tests PRIVATE gateway_native gateway_protocol)
add_test(NAME native-combat-log-routes COMMAND native-combat-log-routes-tests)
add_executable(server-cast-identity-tests tests/server_cast_identity_test.cpp)
target_link_libraries(server-cast-identity-tests PRIVATE gateway_protocol)
target_compile_options(server-cast-identity-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME native-server-cast-identity COMMAND server-cast-identity-tests)
add_executable(native-server-equip-cast-tests tests/native_server_equip_cast_test.cpp)
target_link_libraries(native-server-equip-cast-tests PRIVATE gateway_native gateway_protocol ${CMAKE_DL_LIBS})
target_compile_definitions(native-server-equip-cast-tests PRIVATE GW_ENTITY_CODEC="${GW_ENTITY_CODEC}")
target_compile_options(native-server-equip-cast-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME native-server-equip-casts COMMAND native-server-equip-cast-tests)
set_tests_properties(native-server-equip-casts PROPERTIES SKIP_RETURN_CODE 77 LABELS local-source-codec)
add_test(NAME native-friendly-nameplate-binding COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_nameplate_binding_test.py)
add_test(NAME source-existing-restorative-proc COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/existing_restorative_proc_test.py)
add_executable(native-taxi-tests tests/native_taxi_test.cpp)
target_include_directories(native-taxi-tests PRIVATE native)
target_link_libraries(native-taxi-tests PRIVATE gateway_native gateway_protocol)
add_test(NAME native-taxi-window-contract COMMAND native-taxi-tests)
set_tests_properties(native-taxi-window-contract PROPERTIES SKIP_RETURN_CODE 77)
add_test(NAME source-taxi-node-profile COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/taxi_profile_test.py)
add_executable(mirror-timer-tests tests/mirror_timer_test.cpp)
target_link_libraries(mirror-timer-tests PRIVATE gateway_protocol)
add_test(NAME source-mirror-timer-contract COMMAND mirror-timer-tests)
add_executable(native-mirror-timer-tests tests/native_mirror_timer_test.cpp)
target_link_libraries(native-mirror-timer-tests PRIVATE gateway_native gateway_protocol)
add_test(NAME native-mirror-timer-routing COMMAND native-mirror-timer-tests)
add_test(NAME source-mirror-timer-writer-parity COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/mirror_timer_writer_test.py $<TARGET_FILE:gateway_protocol>)
set_tests_properties(source-mirror-timer-writer-parity PROPERTIES SKIP_RETURN_CODE 77 LABELS local-source-codec)
add_test(NAME existing-server-mapping-audit COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/server_mapping_audit_test.py)
add_test(NAME source-unit-mount-display COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/unit_mount_serializer_test.py)
set_tests_properties(source-unit-mount-display PROPERTIES SKIP_RETURN_CODE 77 LABELS local-source-codec)
add_test(NAME source-character-honor-fields COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/honor_fields_serializer_test.py)
set_tests_properties(source-character-honor-fields PROPERTIES SKIP_RETURN_CODE 77 LABELS local-source-codec)
add_test(NAME source-character-school-stats COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/character_school_stats_serializer_test.py)
set_tests_properties(source-character-school-stats PROPERTIES SKIP_RETURN_CODE 77 LABELS local-source-codec)
add_test(NAME source-visible-item-appearance COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/visible_item_appearance_serializer_test.py)
set_tests_properties(source-visible-item-appearance PROPERTIES SKIP_RETURN_CODE 77 LABELS local-source-codec)
add_test(NAME source-virtual-weapon-appearance COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/virtual_weapon_appearance_fixture.py)
set_tests_properties(source-virtual-weapon-appearance PROPERTIES SKIP_RETURN_CODE 77 LABELS local-source-codec ENVIRONMENT "GW_TEST_CODEC_PATH=${GW_ENTITY_CODEC}")
add_test(NAME source-item-appearance-modifier COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_appearance_modifier_serializer_test.py)
set_tests_properties(source-item-appearance-modifier PROPERTIES SKIP_RETURN_CODE 77 LABELS local-source-codec)
add_test(NAME source-aura-scalar-batch COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/aura_scalar_batch_test.py)
add_test(NAME source-item-text-batch COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_text_batch_test.py)
add_test(NAME source-profession-membership COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/profession_source_membership_test.py)
add_test(NAME native-profession-book-capacity COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_profession_book_test.py)
add_test(NAME native-character-stats-baselines COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_character_stats_test.py)
add_test(NAME native-weapon-skill-baselines COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_weapon_skill_test.py)
add_test(NAME native-barber-shop-window COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_barber_shop_test.py)
add_test(NAME native-profession-circular-icons COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_profession_icons_test.py)
add_test(NAME item-intrinsic-armor-batch COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_intrinsic_armor_batch_test.py)
add_test(NAME source-map-dependencies COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/map_asset_preflight_test.py)
# Isolated Warrior active-definition proposals remain outside the canonical package.
add_test(NAME source-warrior-active-relationship-proposal
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/warrior_active_relationships_test.py)
add_test(NAME source-shield-slam-definition-proposal
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/shield_slam_definition_test.py)
add_test(NAME source-shield-slam-isolated-package
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/shield_slam_package_test.py)
# Original-client-derived remote movement and creation contracts.
add_executable(remote-speeds-tests tests/remote_speeds_test.cpp)
target_link_libraries(remote-speeds-tests PRIVATE gateway_protocol)
target_compile_options(remote-speeds-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME source-native-remote-speed-contract COMMAND remote-speeds-tests)
add_executable(native-remote-speed-pipeline-tests tests/native_remote_speed_pipeline_test.cpp)
target_link_libraries(native-remote-speed-pipeline-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-remote-speed-pipeline-tests PRIVATE native)
target_compile_options(native-remote-speed-pipeline-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME native-bound-remote-speed-pipeline COMMAND native-remote-speed-pipeline-tests)
add_executable(character-creation-tests tests/character_creation_test.cpp)
target_link_libraries(character-creation-tests PRIVATE gateway_protocol)
target_compile_options(character-creation-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME source-native-character-creation-contract COMMAND character-creation-tests)
add_test(NAME source-appearance-catalogue-conversions COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/appearance_catalogue_conversion_test.py)
add_executable(appearance-presentation-tests tests/appearance_presentation_test.cpp)
target_link_libraries(appearance-presentation-tests PRIVATE gateway_protocol)
target_compile_options(appearance-presentation-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME source-native-appearance-presentation COMMAND appearance-presentation-tests)
add_executable(stored-shop-skin-tests tests/stored_shop_skin_test.cpp)
target_link_libraries(stored-shop-skin-tests PRIVATE gateway_protocol)
target_compile_options(stored-shop-skin-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME source-stored-shop-skin-roundtrip COMMAND stored-shop-skin-tests)
add_executable(player-scale-tests tests/player_scale_test.cpp)
target_link_libraries(player-scale-tests PRIVATE gateway_protocol)
target_compile_options(player-scale-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME native-player-scale-by-display COMMAND player-scale-tests)
add_test(NAME source-native-character-creation-profile COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/character_creation_test.py)
add_test(NAME source-race-class-creation-eligibility COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/source_race_class_creation_test.py)
add_test(NAME staged-creation-login-profile-admission COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/creation_login_profile_test.py)
add_test(NAME isolated-item-render-profile-override COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/isolated_item_render_profile_test.py)
add_test(NAME accepted-item-build-base COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_build_base_test.py)
add_executable(character-creation-lifecycle-tests tests/character_creation_lifecycle_test.cpp)
target_link_libraries(character-creation-lifecycle-tests PRIVATE gateway_protocol)
target_compile_options(character-creation-lifecycle-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME source-native-character-creation-lifecycle COMMAND character-creation-lifecycle-tests)
add_test(NAME native-wine-creation-dispatch COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/wine_creation_dispatch_test.py)
add_executable(native-character-creation-registry-tests tests/native_character_creation_registry_test.cpp)
target_link_libraries(native-character-creation-registry-tests PRIVATE gateway_wine_wire gateway_protocol)
target_include_directories(native-character-creation-registry-tests PRIVATE native)
target_compile_options(native-character-creation-registry-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME native-character-creation-registry-lifecycle COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/character_creation_registry_fixture.py $<TARGET_FILE:native-character-creation-registry-tests>)
# The wire DSO must own its creation/protocol closure, independently of test executables.
target_link_libraries(gateway_wine_wire PRIVATE gateway_protocol)
target_link_options(gateway_wine_wire PRIVATE -Wl,--no-undefined)
add_test(NAME native-wire-standalone-loader COMMAND ${Python3_EXECUTABLE} -c "import ctypes,sys; ctypes.CDLL(sys.argv[1])" $<TARGET_FILE:gateway_wine_wire>)
add_test(NAME source-body-descriptor-compat COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_body_descriptor_compat_test.py)
set_tests_properties(source-body-descriptor-compat PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}/ops")
add_test(NAME source-rigid-selector-compat COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_rigid_selector_compat_test.py)
set_tests_properties(source-rigid-selector-compat PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}/ops")
add_test(NAME source-item-all-magic-school-crit COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_all_magic_school_crit_test.py)
set_tests_properties(source-item-all-magic-school-crit PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}/ops:${CMAKE_CURRENT_SOURCE_DIR}/tests")
add_test(NAME source-item-mana-regeneration COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_mana_regeneration_test.py)
set_tests_properties(source-item-mana-regeneration PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}/ops:${CMAKE_CURRENT_SOURCE_DIR}/tests")
add_test(NAME source-item-healing-coefficient COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_spell_bonus_coefficient_test.py)
set_tests_properties(source-item-healing-coefficient PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}/ops:${CMAKE_CURRENT_SOURCE_DIR}/tests")
add_test(NAME source-item-owned-material-geometry COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_owned_material_geometry_test.py)
set_tests_properties(source-item-owned-material-geometry PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}/ops:${CMAKE_CURRENT_SOURCE_DIR}/tests")
add_executable(native_gameobject_use_pipeline_test tests/native_gameobject_use_pipeline_test.cpp)
target_link_libraries(native_gameobject_use_pipeline_test PRIVATE gateway_native gateway_protocol)
add_test(NAME native-gameobject-use-pipeline COMMAND native_gameobject_use_pipeline_test)
add_test(NAME source-item-native-body-context COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_body_native_context_test.py)
set_tests_properties(source-item-native-body-context PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}/ops:${CMAKE_CURRENT_SOURCE_DIR}/tests")
add_test(NAME source-positive-food-regeneration-properties COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_food_regeneration_test.py)
set_tests_properties(source-positive-food-regeneration-properties PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}/ops:${CMAKE_CURRENT_SOURCE_DIR}/tests")
add_test(NAME source-permanent-item-enchantment-properties COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/item_permanent_enchantment_test.py)
set_tests_properties(source-permanent-item-enchantment-properties PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}/ops:${CMAKE_CURRENT_SOURCE_DIR}/tests")
add_executable(gameobject_query_contract_test tests/gameobject_queries_test.cpp src/gameobject_queries.cpp)
target_link_libraries(gameobject_query_contract_test PRIVATE gateway_protocol)
add_test(NAME gameobject-query-contract-tests COMMAND gameobject_query_contract_test)
add_executable(auction_battleground_responses_test tests/auction_battleground_responses_test.cpp)
target_include_directories(auction_battleground_responses_test PRIVATE native)
target_link_libraries(auction_battleground_responses_test PRIVATE gateway_native gateway_protocol)
add_test(NAME auction-battleground-responses COMMAND auction_battleground_responses_test)
add_executable(mailbox_body_retry_test tests/mailbox_body_retry_test.cpp)
target_link_libraries(mailbox_body_retry_test PRIVATE gateway_native gateway_protocol)
target_include_directories(mailbox_body_retry_test PRIVATE native)
add_test(NAME mailbox-body-retry COMMAND mailbox_body_retry_test)
add_executable(gameobject_mailbox_projection_test tests/gameobject_mailbox_projection_test.cpp src/gameobject_queries.cpp)
target_link_libraries(gameobject_mailbox_projection_test PRIVATE gateway_protocol)
add_test(NAME gameobject-mailbox-projection-tests COMMAND gameobject_mailbox_projection_test)
add_test(NAME published-client-assets COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/published_client_assets_test.py)
set_tests_properties(published-client-assets PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}/ops:${CMAKE_CURRENT_SOURCE_DIR}/tests")
find_program(GW_LUA51_EXECUTABLE NAMES lua5.1 lua51)
if(GW_LUA51_EXECUTABLE)
add_test(NAME camelot-character-select-change-realm
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/camelot_change_realm_test.py ${GW_LUA51_EXECUTABLE})
set_tests_properties(camelot-character-select-change-realm PROPERTIES SKIP_RETURN_CODE 77)
add_test(NAME release-web-controls
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/ops/content-web-controls-20261127/verify_ui.py)
set_tests_properties(release-web-controls PROPERTIES SKIP_RETURN_CODE 77)
add_test(NAME warrior-autostance-secure-actions COMMAND ${GW_LUA51_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/warrior_autostance_test.lua ${CMAKE_CURRENT_SOURCE_DIR})
endif()
add_executable(native-gameobject-cast-tests tests/native_gameobject_cast_test.cpp)
target_include_directories(native-gameobject-cast-tests PRIVATE native)
target_link_libraries(native-gameobject-cast-tests PRIVATE gateway_native gateway_protocol)
add_test(NAME native-gameobject-cast-target COMMAND native-gameobject-cast-tests)
add_executable(native-stand-cast-pipeline-tests tests/native_stand_cast_pipeline_test.cpp)
target_include_directories(native-stand-cast-pipeline-tests PRIVATE native)
target_link_libraries(native-stand-cast-pipeline-tests PRIVATE gateway_native gateway_protocol)
add_test(NAME native-source-stand-cast-ordering COMMAND native-stand-cast-pipeline-tests)
add_executable(native-ground-cast-request-tests tests/native_ground_cast_request_test.cpp)
target_include_directories(native-ground-cast-request-tests PRIVATE native)
target_link_libraries(native-ground-cast-request-tests PRIVATE gateway_native gateway_protocol)
add_test(NAME native-ground-cast-request COMMAND native-ground-cast-request-tests)
add_executable(native-cast-move-update-tests tests/native_cast_move_update_test.cpp)
target_include_directories(native-cast-move-update-tests PRIVATE native)
target_link_libraries(native-cast-move-update-tests PRIVATE gateway_native gateway_protocol)
add_test(NAME native-cast-move-update COMMAND native-cast-move-update-tests)
add_executable(native-warrior-stance-pipeline-tests tests/native_warrior_stance_pipeline_test.cpp)
target_include_directories(native-warrior-stance-pipeline-tests PRIVATE native)
target_link_libraries(native-warrior-stance-pipeline-tests PRIVATE gateway_native gateway_protocol ${CMAKE_DL_LIBS})
target_compile_definitions(native-warrior-stance-pipeline-tests PRIVATE GW_ENTITY_CODEC="${GW_ENTITY_CODEC}")
add_test(NAME native-warrior-stance-ordering COMMAND native-warrior-stance-pipeline-tests)
set_tests_properties(native-warrior-stance-ordering PROPERTIES SKIP_RETURN_CODE 77)
add_executable(native-client-drop-diagnostic-tests tests/native_client_drop_diagnostic_test.cpp)
add_test(NAME native-client-drop-metadata-only COMMAND native-client-drop-diagnostic-tests)
add_test(NAME exact-login-reminder-filter COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/login_reminder_filter_test.py)
add_executable(native-warrior-action-diagnostics-tests tests/native_warrior_action_diagnostics_test.cpp)
target_link_libraries(native-warrior-action-diagnostics-tests PRIVATE gateway_native gateway_protocol ZLIB::ZLIB)
add_executable(private-gameplay-capture-tests tests/private_gameplay_capture_test.cpp)
add_test(NAME world-call-failure-diagnostics COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/world_call_failure_test.py)
add_test(NAME world-close-attribution COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/world_close_attribution_test.py)
add_test(NAME private-club-membership-observation COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/private_club_membership_observation_test.py)
# The strict typed GO helper is consumed by native world query correlation.
# Keep it out of the frozen protocol/codec archive used by the disposable copy.
target_sources(gateway_native PRIVATE src/gameobject_queries.cpp)
target_sources(gateway_native PRIVATE src/page_text.cpp)
target_sources(gateway_native PRIVATE native/party_translation.cpp native/far_transfer.cpp)
add_executable(native_gameobject_query_pipeline_test tests/native_gameobject_query_pipeline_test.cpp)
target_link_libraries(native_gameobject_query_pipeline_test PRIVATE gateway_native gateway_protocol)
add_test(NAME native-gameobject-query-boundary COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/native_gameobject_query_boundary_test.py $<TARGET_FILE:native_gameobject_query_pipeline_test>)
add_test(NAME guild-bank-wire-admission COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/guild_bank_wire_admission_test.py)
add_executable(source-quest-log-tests tests/quest_log_test.cpp)
target_link_libraries(source-quest-log-tests PRIVATE gateway_protocol)
add_test(NAME source-quest-log-state COMMAND source-quest-log-tests)
add_executable(source-quest-protocol-tests tests/quest_packets_test.cpp)
target_link_libraries(source-quest-protocol-tests PRIVATE gateway_native gateway_protocol)
add_test(NAME source-quest-protocol COMMAND source-quest-protocol-tests)
add_executable(native-quest-poi-request-tests tests/quest_poi_request_test.cpp)
add_executable(native-quest-poi-response-tests tests/quest_poi_response_test.cpp)
target_link_libraries(native-quest-poi-response-tests PRIVATE gateway_protocol)
add_test(NAME native-quest-poi-response-writer COMMAND native-quest-poi-response-tests)
target_link_libraries(native-quest-poi-request-tests PRIVATE gateway_native gateway_protocol)
add_test(NAME native-quest-poi-request COMMAND native-quest-poi-request-tests)
# Matching original PartyUpdate codec is supplied explicitly to this fixture.
add_executable(native_party_invite_test tests/native_party_invite_test.cpp)
target_link_libraries(native_party_invite_test PRIVATE gateway_native gateway_protocol)
add_test(NAME native-party-invite-guards COMMAND native_party_invite_test)
add_entity_writer_fixture(native-party-invite-writer party_invite_serializer_fixture.py)
set_tests_properties(native-party-invite-writer PROPERTIES SKIP_RETURN_CODE 77)
add_executable(pvp-request-tests tests/pvp_request_test.cpp)
target_link_libraries(pvp-request-tests PRIVATE gateway_protocol)
target_compile_options(pvp-request-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME source-pvp-request COMMAND pvp-request-tests)
add_executable(pvp-presentation-tests tests/pvp_presentation_test.cpp)
target_link_libraries(pvp-presentation-tests PRIVATE gateway_protocol)
target_compile_options(pvp-presentation-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME source-pvp-explicit-state COMMAND pvp-presentation-tests)
add_executable(random-roll-tests tests/random_roll_test.cpp)
target_link_libraries(random-roll-tests PRIVATE gateway_protocol)
target_compile_options(random-roll-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME source-random-roll-contract COMMAND random-roll-tests)
add_entity_writer_fixture(native-random-roll-writer random_roll_serializer_fixture.py)
set_tests_properties(native-random-roll-writer PROPERTIES SKIP_RETURN_CODE 77)
add_executable(native_party_projection_test tests/native_party_projection_test.cpp)
target_link_libraries(native_party_projection_test PRIVATE gateway_native gateway_protocol ${CMAKE_DL_LIBS})
add_test(NAME native-party-update-70291-writer COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/party_update_70291_test.py)
set_tests_properties(native-party-update-70291-writer PROPERTIES SKIP_RETURN_CODE 77 ENVIRONMENT "GW_TEST_CODEC_PATH=${GW_ENTITY_CODEC}" LABELS local-source-codec)
add_test(NAME native-party-custom-races COMMAND native_party_projection_test --synthetic-custom-races "${GW_ENTITY_CODEC}")
add_test(NAME native-party-peer-reply-first COMMAND native-peer-player-pipeline-tests --peer-reply-first "${GW_ENTITY_CODEC}")
add_test(NAME native-party-roster-first COMMAND native-peer-player-pipeline-tests --roster-first "${GW_ENTITY_CODEC}")
add_test(NAME native-peer-melee-visibility COMMAND native-peer-player-pipeline-tests --peer-melee "${GW_ENTITY_CODEC}")
set_tests_properties(native-party-peer-reply-first native-party-roster-first native-peer-melee-visibility PROPERTIES SKIP_RETURN_CODE 77 LABELS local-source-codec)
set_tests_properties(native-party-custom-races PROPERTIES SKIP_RETURN_CODE 77 LABELS local-source-codec)
add_executable(native_group_events_test tests/native_group_events_test.cpp)
target_link_libraries(native_group_events_test PRIVATE gateway_native gateway_protocol ${CMAKE_DL_LIBS})
add_test(NAME native-group-events COMMAND native_group_events_test "${GW_ENTITY_CODEC}")
add_executable(native_trade_revision_test tests/native_trade_revision_test.cpp)
target_link_libraries(native_trade_revision_test PRIVATE gateway_native gateway_protocol)
add_test(NAME native-trade-revision COMMAND native_trade_revision_test)
add_executable(native_trade_status_all_test tests/native_trade_status_all_test.cpp)
target_link_libraries(native_trade_status_all_test PRIVATE gateway_native gateway_protocol)
add_test(NAME native-trade-status-all COMMAND native_trade_status_all_test)
set_tests_properties(native-group-events PROPERTIES SKIP_RETURN_CODE 77 LABELS local-source-codec)
add_executable(native_self_trajectory_facing_hold_test tests/native_self_trajectory_facing_hold_test.cpp)
target_link_libraries(native_self_trajectory_facing_hold_test PRIVATE gateway_native gateway_protocol)
add_executable(native_ship_transfer_test tests/native_ship_transfer_test.cpp)
target_link_libraries(native_ship_transfer_test PRIVATE gateway_native gateway_protocol)
add_test(NAME native-ship-passenger-transfer COMMAND native_ship_transfer_test)
add_executable(native_far_transfer_test tests/native_far_transfer_test.cpp)
target_link_libraries(native_far_transfer_test PRIVATE gateway_native gateway_protocol ${CMAKE_DL_LIBS})
add_executable(native_master_loot_projection_test tests/native_master_loot_projection_test.cpp)
target_link_libraries(native_master_loot_projection_test PRIVATE gateway_native gateway_protocol ${CMAKE_DL_LIBS})
add_executable(spell-cooldown-family-tests tests/spell_cooldown_family_test.cpp)
target_link_libraries(spell-cooldown-family-tests PRIVATE gateway_protocol)
target_compile_options(spell-cooldown-family-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME source-flat-cooldown-named-families COMMAND spell-cooldown-family-tests)
add_executable(native-inspect-equipment-tests tests/native_inspect_equipment_test.cpp)
target_include_directories(native-inspect-equipment-tests PRIVATE native)
target_link_libraries(native-inspect-equipment-tests PRIVATE gateway_native gateway_protocol)
add_test(NAME native-inspect-equipment COMMAND native-inspect-equipment-tests)
add_executable(native-equipment-visibility-tests tests/equipment_visibility_test.cpp)
target_link_libraries(native-equipment-visibility-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-equipment-visibility-tests PRIVATE native)
add_test(NAME native-equipment-visibility-family COMMAND native-equipment-visibility-tests)
add_executable(native-social-integration-tests tests/native_social_integration_test.cpp)
target_include_directories(native-social-integration-tests PRIVATE native)
target_link_libraries(native-social-integration-tests PRIVATE gateway_native gateway_protocol)
add_test(NAME native-social-integration COMMAND native-social-integration-tests)
add_executable(native-contact-name-dependency-tests tests/native_contact_name_dependency_test.cpp)
target_include_directories(native-contact-name-dependency-tests PRIVATE native)
target_link_libraries(native-contact-name-dependency-tests PRIVATE gateway_native gateway_protocol)
add_test(NAME native-contact-name-dependency COMMAND native-contact-name-dependency-tests)
add_executable(native-quest-poi-dataset-tests tests/quest_poi_dataset_test.cpp)
target_link_libraries(native-quest-poi-dataset-tests PRIVATE gateway_protocol)
add_executable(native-quest-poi-dataset-runtime-tests tests/quest_poi_dataset_runtime_test.cpp)
target_link_libraries(native-quest-poi-dataset-runtime-tests PRIVATE gateway_native gateway_protocol)
if(GW_QUEST_POI_DATASET_HEADER)
add_test(NAME native-quest-poi-dataset-runtime COMMAND native-quest-poi-dataset-runtime-tests)
endif()
add_executable(source-combat-event-tests tests/source_combat_event_test.cpp)
target_link_libraries(source-combat-event-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(source-combat-event-tests PRIVATE native)
add_test(NAME native-source-combat-event-notifications COMMAND source-combat-event-tests)
add_test(NAME durability-effect-slot-profiles
COMMAND ${Python3_EXECUTABLE} -B ${CMAKE_CURRENT_SOURCE_DIR}/tests/durability_effect_slots_test.py)
add_executable(native-spell-interrupt-execute-tests tests/native_spell_interrupt_execute_test.cpp)
target_link_libraries(native-spell-interrupt-execute-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-spell-interrupt-execute-tests PRIVATE native)
add_test(NAME native-spell-interrupt-execute COMMAND native-spell-interrupt-execute-tests)
add_executable(observed-spell-cast-tests tests/observed_spell_cast_test.cpp)
target_link_libraries(observed-spell-cast-tests PRIVATE gateway_native gateway_protocol ${CMAKE_DL_LIBS})
target_include_directories(observed-spell-cast-tests PRIVATE native)
add_test(NAME native-observed-server-spell-casts COMMAND observed-spell-cast-tests)
add_executable(blizzard-egress-tests tests/blizzard_egress_test.cpp)
target_include_directories(blizzard-egress-tests PRIVATE native)
add_test(NAME native-blizzard-egress COMMAND blizzard-egress-tests)
set_tests_properties(native-observed-server-spell-casts PROPERTIES SKIP_RETURN_CODE 77 ENVIRONMENT "GW_TEST_CODEC_PATH=${GW_ENTITY_CODEC}")
add_executable(native-spell-channel-tests tests/native_spell_channel_test.cpp)
target_link_libraries(native-spell-channel-tests PRIVATE gateway_native gateway_protocol ${CMAKE_DL_LIBS})
add_test(NAME native-source-spell-channels COMMAND native-spell-channel-tests "${GW_ENTITY_CODEC}")
set_tests_properties(native-source-spell-channels PROPERTIES SKIP_RETURN_CODE 77)
add_executable(native-spell-feedback-tests tests/native_spell_feedback_test.cpp)
target_link_libraries(native-spell-feedback-tests PRIVATE gateway_native gateway_protocol ${CMAKE_DL_LIBS})
add_test(NAME native-source-spell-feedback COMMAND native-spell-feedback-tests "${GW_ENTITY_CODEC}")
set_tests_properties(native-source-spell-feedback PROPERTIES SKIP_RETURN_CODE 77)
add_executable(guild-notifications-test tests/guild_notifications_test.cpp)
target_link_libraries(guild-notifications-test PRIVATE gateway_native gateway_protocol)
target_include_directories(guild-notifications-test PRIVATE native)
add_test(NAME source-guild-petition-ticket-notifications COMMAND guild-notifications-test)
add_executable(native-npc-text-tests tests/native_npc_text_test.cpp)
target_include_directories(native-npc-text-tests PRIVATE native)
target_link_libraries(native-npc-text-tests PRIVATE gateway_native gateway_protocol)
add_test(NAME native-npc-text-greetings COMMAND native-npc-text-tests)
add_executable(npc-greeting-selection-tests tests/npc_greeting_selection_test.cpp)
target_link_libraries(npc-greeting-selection-tests PRIVATE gateway_protocol)
add_test(NAME npc-greeting-weight-selection COMMAND npc-greeting-selection-tests)
add_test(NAME native-auction-browse-writers COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/auction_browse_serializer_test.py)
set_tests_properties(native-auction-browse-writers PROPERTIES SKIP_RETURN_CODE 77 ENVIRONMENT "GW_TEST_CODEC_PATH=${GW_ENTITY_CODEC}")
add_test(NAME native-auction-personal-writers COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/auction_personal_serializer_test.py)
set_tests_properties(native-auction-personal-writers PROPERTIES SKIP_RETURN_CODE 77 ENVIRONMENT "GW_TEST_CODEC_PATH=${GW_ENTITY_CODEC}")
add_test(NAME native-auction-commodity-writers COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/auction_commodity_serializer_test.py)
set_tests_properties(native-auction-commodity-writers PROPERTIES SKIP_RETURN_CODE 77 ENVIRONMENT "GW_TEST_CODEC_PATH=${GW_ENTITY_CODEC}")
add_executable(auction-browse-tests tests/auction_browse_test.cpp)
target_link_libraries(auction-browse-tests PRIVATE gateway_protocol)
add_test(NAME auction-browse-protocol COMMAND auction-browse-tests)
add_executable(pet-stable-tests tests/pet_stable_test.cpp)
target_link_libraries(pet-stable-tests PRIVATE gateway_protocol)
add_test(NAME pet-stable-protocol COMMAND pet-stable-tests)
add_executable(petition-request-tests tests/petition_request_test.cpp)
target_link_libraries(petition-request-tests PRIVATE gateway_protocol)
add_test(NAME petition-request-protocol COMMAND petition-request-tests)
add_executable(native_pet_stable_pipeline_test tests/native_pet_stable_pipeline_test.cpp)
target_link_libraries(native_pet_stable_pipeline_test PRIVATE gateway_native gateway_protocol)
add_test(NAME native-pet-stable-pipeline COMMAND native_pet_stable_pipeline_test)
add_executable(native_bg_positions_test tests/native_bg_positions_test.cpp)
target_link_libraries(native_bg_positions_test PRIVATE gateway_native gateway_protocol)
add_test(NAME native-bg-flag-carrier-positions COMMAND native_bg_positions_test)
add_executable(native_pet_unlearn_mount_test tests/native_pet_unlearn_mount_test.cpp)
target_link_libraries(native_pet_unlearn_mount_test PRIVATE gateway_native gateway_protocol)
add_test(NAME native-pet-unlearn-mount-guards COMMAND native_pet_unlearn_mount_test)
add_executable(native_pet_command_test tests/native_pet_command_test.cpp)
target_link_libraries(native_pet_command_test PRIVATE gateway_native gateway_protocol)
add_test(NAME native-pet-commands COMMAND native_pet_command_test)
add_executable(native_misc_request_test tests/native_misc_request_test.cpp)
target_link_libraries(native_misc_request_test PRIVATE gateway_native gateway_protocol)
add_test(NAME native-misc-requests COMMAND native_misc_request_test)
add_executable(native-weather-route-tests tests/native_weather_route_test.cpp)
target_link_libraries(native-weather-route-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-weather-route-tests PRIVATE native)
target_compile_options(native-weather-route-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME native-weather-route COMMAND native-weather-route-tests)
add_executable(native-proficiency-route-tests tests/native_proficiency_route_test.cpp)
target_link_libraries(native-proficiency-route-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-proficiency-route-tests PRIVATE native)
target_compile_options(native-proficiency-route-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME native-proficiency-route COMMAND native-proficiency-route-tests)
add_executable(native_auction_request_test tests/native_auction_request_test.cpp)
target_link_libraries(native_auction_request_test PRIVATE gateway_native gateway_protocol)
add_test(NAME native-auction-requests COMMAND native_auction_request_test)
add_executable(native_auction_browse_pipeline_test tests/native_auction_browse_pipeline_test.cpp)
target_link_libraries(native_auction_browse_pipeline_test PRIVATE gateway_native gateway_protocol)
add_test(NAME native-auction-browse-pipeline COMMAND native_auction_browse_pipeline_test)
# Self-contained native fixtures that existed without a CTest target (found 2026-11-21).
add_executable(native-club-bootstrap-fixture tests/native_club_bootstrap_test.cpp)
target_link_libraries(native-club-bootstrap-fixture PRIVATE gateway_native gateway_protocol)
target_include_directories(native-club-bootstrap-fixture PRIVATE native)
add_test(NAME native-club-bootstrap-fixture COMMAND native-club-bootstrap-fixture)
add_executable(native-club-chat-fixture tests/native_club_chat_test.cpp)
target_link_libraries(native-club-chat-fixture PRIVATE gateway_native gateway_protocol)
target_include_directories(native-club-chat-fixture PRIVATE native)
add_test(NAME native-club-chat-fixture COMMAND native-club-chat-fixture)
add_executable(native-club-source-context-fixture tests/native_club_source_context_test.cpp)
target_link_libraries(native-club-source-context-fixture PRIVATE gateway_native gateway_protocol)
target_include_directories(native-club-source-context-fixture PRIVATE native)
add_test(NAME native-club-source-context-fixture COMMAND native-club-source-context-fixture)
add_executable(native-guild-bank-trigger-fixture tests/native_guild_bank_trigger_test.cpp)
target_link_libraries(native-guild-bank-trigger-fixture PRIVATE gateway_native gateway_protocol)
target_include_directories(native-guild-bank-trigger-fixture PRIVATE native)
add_test(NAME native-guild-bank-trigger-fixture COMMAND native-guild-bank-trigger-fixture)
add_executable(native-guild-management-fixture tests/native_guild_management_test.cpp)
target_link_libraries(native-guild-management-fixture PRIVATE gateway_native gateway_protocol)
target_include_directories(native-guild-management-fixture PRIVATE native)
add_test(NAME native-guild-management-fixture COMMAND native-guild-management-fixture)
add_executable(native-guild-name-bounds-fixture tests/native_guild_name_bounds_test.cpp)
target_link_libraries(native-guild-name-bounds-fixture PRIVATE gateway_native gateway_protocol)
target_include_directories(native-guild-name-bounds-fixture PRIVATE native)
add_test(NAME native-guild-name-bounds-fixture COMMAND native-guild-name-bounds-fixture)
add_executable(native-guild-rank-assignment-fixture tests/native_guild_rank_assignment_test.cpp)
target_link_libraries(native-guild-rank-assignment-fixture PRIVATE gateway_native gateway_protocol)
target_include_directories(native-guild-rank-assignment-fixture PRIVATE native)
add_test(NAME native-guild-rank-assignment-fixture COMMAND native-guild-rank-assignment-fixture)
add_executable(native-guild-rank-assignment-world-fixture tests/native_guild_rank_assignment_world_test.cpp)
target_link_libraries(native-guild-rank-assignment-world-fixture PRIVATE gateway_native gateway_protocol)
target_include_directories(native-guild-rank-assignment-world-fixture PRIVATE native)
add_test(NAME native-guild-rank-assignment-world-fixture COMMAND native-guild-rank-assignment-world-fixture)
add_executable(native-guild-roster-bounds-fixture tests/native_guild_roster_bounds_test.cpp)
target_link_libraries(native-guild-roster-bounds-fixture PRIVATE gateway_native gateway_protocol)
target_include_directories(native-guild-roster-bounds-fixture PRIVATE native)
add_test(NAME native-guild-roster-bounds-fixture COMMAND native-guild-roster-bounds-fixture)
add_executable(native-initial-spell-ids-fixture tests/native_initial_spell_ids_test.cpp)
target_link_libraries(native-initial-spell-ids-fixture PRIVATE gateway_native gateway_protocol)
target_include_directories(native-initial-spell-ids-fixture PRIVATE native)
add_test(NAME native-initial-spell-ids-fixture COMMAND native-initial-spell-ids-fixture)
add_executable(native-inventory-destroy-fixture tests/native_inventory_destroy_test.cpp)
target_link_libraries(native-inventory-destroy-fixture PRIVATE gateway_native gateway_protocol)
target_include_directories(native-inventory-destroy-fixture PRIVATE native)
add_test(NAME native-inventory-destroy-fixture COMMAND native-inventory-destroy-fixture)
add_executable(native-quest-item-progress-fixture tests/native_quest_item_progress_test.cpp)
target_link_libraries(native-quest-item-progress-fixture PRIVATE gateway_native gateway_protocol)
target_include_directories(native-quest-item-progress-fixture PRIVATE native)
add_test(NAME native-quest-item-progress-fixture COMMAND native-quest-item-progress-fixture)
add_executable(native-quest-item-world-progress tests/quest_item_world_progress_test.cpp)
target_link_libraries(native-quest-item-world-progress PRIVATE gateway_native gateway_protocol)
target_include_directories(native-quest-item-world-progress PRIVATE native)
add_test(NAME native-quest-item-world-progress COMMAND native-quest-item-world-progress)
add_executable(native-creature-query-tests tests/native_creature_query_test.cpp)
target_link_libraries(native-creature-query-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-creature-query-tests PRIVATE native)
add_test(NAME native-creature-query COMMAND native-creature-query-tests)
add_executable(native-auction-commodity-tests tests/native_auction_commodity_test.cpp)
target_link_libraries(native-auction-commodity-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-auction-commodity-tests PRIVATE native)
add_test(NAME native-auction-commodities COMMAND native-auction-commodity-tests)
add_executable(auction-aux-tests tests/auction_aux_test.cpp)
target_link_libraries(auction-aux-tests PRIVATE gateway_protocol)
add_test(NAME auction-aux COMMAND auction-aux-tests)
add_executable(radio-stream-tests tests/radio_stream_test.cpp)
target_link_libraries(radio-stream-tests PRIVATE gateway_protocol)
add_test(NAME radio-stream COMMAND radio-stream-tests)
add_executable(native-undercity-transport-gaps tests/native_undercity_transport_gaps_test.cpp)
target_link_libraries(native-undercity-transport-gaps PRIVATE gateway_native gateway_protocol ${CMAKE_DL_LIBS})
add_test(NAME native-undercity-transport-gaps COMMAND native-undercity-transport-gaps "${GW_ENTITY_CODEC}")
set_tests_properties(native-undercity-transport-gaps PROPERTIES SKIP_RETURN_CODE 77 LABELS local-source-codec)
add_executable(native-gameobject-stationary-batch-fixture tests/native_gameobject_stationary_batch_test.cpp)
target_link_libraries(native-gameobject-stationary-batch-fixture PRIVATE gateway_native gateway_protocol ${CMAKE_DL_LIBS})
if(GW_GAMEOBJECT_AUTHORITY_PROFILE_HEADER)
target_compile_definitions(native-gameobject-stationary-batch-fixture PRIVATE GW_GAMEOBJECT_AUTHORITY_PROFILE_HEADER="${GW_GO_AUTHORITY_HEADER}")
target_include_directories(native-gameobject-stationary-batch-fixture BEFORE PRIVATE "${GW_GO_AUTHORITY_INCLUDE}")
endif()
add_test(NAME native-gameobject-stationary-batch-fixture COMMAND native-gameobject-stationary-batch-fixture "${GW_ENTITY_CODEC}")
set_tests_properties(native-gameobject-stationary-batch-fixture PROPERTIES SKIP_RETURN_CODE 77 LABELS local-source-codec)
add_executable(native-club-service-fixture tests/native_club_service_test.cpp)
target_link_libraries(native-club-service-fixture PRIVATE gateway_native gateway_protocol)
add_test(NAME native-club-service-fixture COMMAND native-club-service-fixture "${CMAKE_CURRENT_SOURCE_DIR}/tests/fixtures/club-service-synthetic.json")
add_executable(native-deferred-addon-projection-fixture tests/native_deferred_addon_projection_test.cpp)
target_link_libraries(native-deferred-addon-projection-fixture PRIVATE gateway_native gateway_protocol)
add_test(NAME native-deferred-addon-projection-fixture COMMAND native-deferred-addon-projection-fixture)
add_executable(native-peer-addon-relay-tests tests/native_peer_addon_test.cpp)
target_link_libraries(native-peer-addon-relay-tests PRIVATE gateway_native gateway_protocol)
add_test(NAME native-peer-addon-relay COMMAND native-peer-addon-relay-tests)
find_program(GW_LUA51 lua5.1)
if(GW_LUA51)
add_test(NAME client-octo-replay-grave COMMAND ${GW_LUA51} ${CMAKE_CURRENT_SOURCE_DIR}/tests/octo_replay_grave_test.lua ${CMAKE_CURRENT_SOURCE_DIR}/client_addons/OctoReplayGrave)
add_test(NAME client-bossmods-harness COMMAND ${GW_LUA51} ${CMAKE_CURRENT_SOURCE_DIR}/tests/bossmods_harness.lua ${CMAKE_CURRENT_SOURCE_DIR}/client_addons/OctoBossMods)
endif()
add_executable(native-gameobject-empty-name-fixture tests/native_gameobject_empty_name_test.cpp)
target_link_libraries(native-gameobject-empty-name-fixture PRIVATE gateway_native gateway_protocol)
add_test(NAME native-gameobject-empty-name-fixture COMMAND native-gameobject-empty-name-fixture)
add_executable(page_text_test tests/page_text_test.cpp src/page_text.cpp)
target_link_libraries(page_text_test PRIVATE gateway_protocol)
add_test(NAME page-text COMMAND page_text_test)
add_executable(equipment-set-manager-tests tests/equipment_set_manager_test.cpp)
target_include_directories(equipment-set-manager-tests PRIVATE native)
target_link_libraries(equipment-set-manager-tests PRIVATE gateway_protocol ZLIB::ZLIB)
add_test(NAME equipment-set-manager COMMAND equipment-set-manager-tests ${CMAKE_CURRENT_BINARY_DIR})
add_executable(native-object-sound-lifecycle-tests tests/native_object_sound_lifecycle_test.cpp)
target_link_libraries(native-object-sound-lifecycle-tests PRIVATE gateway_native gateway_protocol)
add_test(NAME native-object-sound-lifecycle COMMAND native-object-sound-lifecycle-tests)
set_tests_properties(native-object-sound-lifecycle PROPERTIES TIMEOUT 15 LABELS local-client-static)
add_executable(native-go-despawn-lifecycle-tests tests/native_go_despawn_lifecycle_test.cpp)
target_link_libraries(native-go-despawn-lifecycle-tests PRIVATE gateway_native gateway_protocol)
add_test(NAME native-go-despawn-lifecycle COMMAND native-go-despawn-lifecycle-tests)
set_tests_properties(native-go-despawn-lifecycle PROPERTIES TIMEOUT 15 LABELS local-client-static)
add_executable(native-go-custom-lifecycle-tests tests/native_go_custom_lifecycle_test.cpp)
target_link_libraries(native-go-custom-lifecycle-tests PRIVATE gateway_native gateway_protocol)
add_test(NAME native-go-custom-lifecycle COMMAND native-go-custom-lifecycle-tests)
set_tests_properties(native-go-custom-lifecycle PROPERTIES TIMEOUT 15 LABELS local-client-static)
# Source bank presentation and retained interaction share current actor scope.
add_executable(native-character-bank-presentation-tests tests/native_character_bank_presentation_test.cpp)
target_include_directories(native-character-bank-presentation-tests PRIVATE native)
target_link_libraries(native-character-bank-presentation-tests PRIVATE gateway_native gateway_protocol)
add_test(NAME native-character-bank-presentation COMMAND native-character-bank-presentation-tests)
add_test(NAME octo-spell-aura-restrictions COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/octo_spell_aura_restrictions_test.py)
add_executable(client-update-state-tests tests/client_update_state_test.cpp)
add_test(NAME client-update-state COMMAND client-update-state-tests)
if(LUA_EXECUTABLE)
add_test(NAME client-update-glue COMMAND ${LUA_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/client_update_glue_test.lua ${CMAKE_CURRENT_SOURCE_DIR})
endif()
add_test(NAME patch-updater-cli COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/patch_updater_cli_test.py)
add_executable(spell-modifier-operation-tests tests/spell_modifier_operations_test.cpp)
target_link_libraries(spell-modifier-operation-tests PRIVATE gateway_protocol)
target_compile_options(spell-modifier-operation-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME source-spell-modifier-operation-semantics COMMAND spell-modifier-operation-tests)
add_executable(spell-modifier-group-value-tests tests/spell_modifier_group_values_test.cpp)
target_link_libraries(spell-modifier-group-value-tests PRIVATE gateway_protocol)
target_compile_options(spell-modifier-group-value-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME source-spell-modifier-group-values COMMAND spell-modifier-group-value-tests)
add_executable(spell-modifier-group-projection-tests tests/spell_modifier_group_projection_test.cpp)
target_link_libraries(spell-modifier-group-projection-tests PRIVATE gateway_protocol)
target_compile_options(spell-modifier-group-projection-tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME source-spell-modifier-group-projection COMMAND spell-modifier-group-projection-tests)
add_executable(native-startup-locale-tests tests/native_startup_locale_test.c)
add_test(NAME native-startup-locale COMMAND native-startup-locale-tests)
add_custom_target(spellpower-gap-tests SOURCES ops/spellpower_gap.py tests/spellpower_gap_test.py)
add_test(NAME spellpower-gap COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/spellpower_gap_test.py)
# Bound the glue-owned priority wait without building any production binaries.
add_custom_target(priority-login-timeout-tests
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/priority_login_timeout_test.py
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
add_test(NAME priority-login-timeout
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/priority_login_timeout_test.py)
if(UNIX)
add_executable(remember-credentials-tests tests/remember_credentials_test.cpp native/remember_credentials.cpp)
target_include_directories(remember-credentials-tests PRIVATE native)
add_test(NAME remember-password COMMAND ${Python3_EXECUTABLE}
${CMAKE_CURRENT_SOURCE_DIR}/tests/remember_password_test.py $<TARGET_FILE:remember-credentials-tests>)
endif()
add_executable(hotfix-request-split-tests tests/hotfix_request_split_test.c)
target_include_directories(hotfix-request-split-tests PRIVATE native)
add_test(NAME hotfix-request-split COMMAND hotfix-request-split-tests)
add_custom_target(auction-cancel-fallback-tests DEPENDS native-source-feedback-tests)
if(GW_LUA51_EXECUTABLE)
add_test(NAME auction-cancel-fallback COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/auction_cancel_fallback_test.py $<TARGET_FILE:native-source-feedback-tests> ${GW_LUA51_EXECUTABLE})
endif()
add_executable(native-forced-reactions-tests tests/native_forced_reactions_test.cpp)
target_link_libraries(native-forced-reactions-tests PRIVATE gateway_native gateway_protocol)
target_include_directories(native-forced-reactions-tests PRIVATE native)
add_test(NAME native-forced-reactions COMMAND native-forced-reactions-tests)
add_custom_target(forced-reactions-codec-tests
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/forced_reactions_codec_test.py ${GW_ENTITY_CODEC})
add_test(NAME forced-reactions-codec COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/forced_reactions_codec_test.py ${GW_ENTITY_CODEC})
add_executable(current-realm-record-tests tests/current_realm_record_test.c)
target_include_directories(current-realm-record-tests PRIVATE native)
target_compile_definitions(current-realm-record-tests PRIVATE GW_CURRENT_MAIN_HEADER_FIXTURE="${CMAKE_CURRENT_SOURCE_DIR}/tests/fixtures/current_main_70334_header.bin")
add_test(NAME current-realm-record COMMAND current-realm-record-tests ${CMAKE_CURRENT_SOURCE_DIR}/tests/fixtures/current_main_70334_header.bin)
add_custom_target(editor-spawn-export-tests
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/editor_spawn_export_test.py)
add_test(NAME editor-spawn-export COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/editor_spawn_export_test.py)
add_custom_target(editor-spawn-undo-tests
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/editor_spawn_undo_test.py)
add_test(NAME editor-spawn-undo COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/editor_spawn_undo_test.py)
add_executable(login-timing-tests tests/login_timing_test.cpp)
target_include_directories(login-timing-tests PRIVATE native)
add_test(NAME login-timing COMMAND login-timing-tests)
add_executable(native-account-name-tests tests/native_account_name_test.cpp)
target_include_directories(native-account-name-tests PRIVATE native include)
add_test(NAME native-account-name COMMAND native-account-name-tests)
add_custom_target(addon-text-size-tests COMMAND ${Python3_EXECUTABLE} -m py_compile ${CMAKE_CURRENT_SOURCE_DIR}/tests/addon_text_size_test.py ${CMAKE_CURRENT_SOURCE_DIR}/ops/stage_addon_text_size.py)
add_test(NAME addon-text-size COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/addon_text_size_test.py)
add_custom_target(octo-trade-link-tests DEPENDS native-peer-addon-relay-tests)
add_test(NAME octo-trade-link COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/octo_trade_link_test.py $<TARGET_FILE:native-peer-addon-relay-tests>)
add_custom_target(hotfix-baked-audit-tests
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/hotfix_baked_audit_test.py --build ${CMAKE_BINARY_DIR}/hotfix-baked-audit-reader)
add_test(NAME hotfix-baked-audit COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/hotfix_baked_audit_test.py)
add_custom_target(addon-db2-audit-tests
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/addon_db2_audit_test.py --build ${CMAKE_BINARY_DIR}/addon-db2-audit-tools)
add_test(NAME addon-db2-audit COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/addon_db2_audit_test.py)
add_custom_target(hotfix-submit-capture-tests DEPENDS private-gameplay-capture-tests gateway_native)
add_test(NAME hotfix-submit-capture COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/hotfix_submit_capture_test.py $<TARGET_FILE:private-gameplay-capture-tests>)
add_custom_target(addon-source-authority-tests
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/addon_source_authority_test.py --build ${CMAKE_BINARY_DIR}/addon-source-authority-tools)
add_test(NAME addon-source-authority COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/addon_source_authority_test.py)
add_custom_target(source-spell-conversion-tests
COMMAND ${Python3_EXECUTABLE} -m py_compile ${CMAKE_SOURCE_DIR}/ops/octo_spell_presentation.py ${CMAKE_SOURCE_DIR}/ops/addon_source_authority/convert_spells.py ${CMAKE_SOURCE_DIR}/ops/addon_source_authority/compose_content.py)
add_test(NAME source-spell-conversion COMMAND ${Python3_EXECUTABLE} ${CMAKE_SOURCE_DIR}/tests/source_spell_conversion_test.py)
add_custom_target(tirisfal-geometry-audit-tests
COMMAND ${Python3_EXECUTABLE} -m py_compile ${CMAKE_SOURCE_DIR}/ops/tirisfal_geometry_audit.py ${CMAKE_SOURCE_DIR}/ops/minimap_seam_audit.py)
add_test(NAME tirisfal-geometry-audit COMMAND ${Python3_EXECUTABLE} ${CMAKE_SOURCE_DIR}/tests/tirisfal_geometry_audit_test.py)
add_custom_target(minimap-neighbour-tests
COMMAND ${Python3_EXECUTABLE} -m py_compile ${CMAKE_SOURCE_DIR}/ops/minimap_neighbor_stage.py)
add_test(NAME minimap-neighbours COMMAND ${Python3_EXECUTABLE} ${CMAKE_SOURCE_DIR}/tests/minimap_neighbor_stage_test.py)
add_custom_target(tirisfal-changed-minimap-tests
COMMAND ${Python3_EXECUTABLE} -m py_compile ${CMAKE_SOURCE_DIR}/ops/tirisfal_changed_minimaps.py ${CMAKE_SOURCE_DIR}/ops/tirisfal_minimap_content.py ${CMAKE_SOURCE_DIR}/ops/content_candidate_rehearsal.py)
add_test(NAME tirisfal-changed-minimaps COMMAND ${Python3_EXECUTABLE} ${CMAKE_SOURCE_DIR}/tests/tirisfal_changed_minimaps_test.py)
add_custom_target(booty-bay-minimap-tests
COMMAND ${Python3_EXECUTABLE} -m py_compile
${CMAKE_CURRENT_SOURCE_DIR}/ops/booty_bay_minimap.py
${CMAKE_CURRENT_SOURCE_DIR}/tests/booty_bay_minimap_test.py VERBATIM)
add_test(NAME booty-bay-minimap COMMAND ${Python3_EXECUTABLE}
${CMAKE_CURRENT_SOURCE_DIR}/tests/booty_bay_minimap_test.py)
add_custom_target(booty-bay-shore-bc1-tests
COMMAND ${Python3_EXECUTABLE} -m py_compile
${CMAKE_CURRENT_SOURCE_DIR}/ops/booty_bay_shore.py
${CMAKE_CURRENT_SOURCE_DIR}/tests/booty_bay_shore_bc1_test.py VERBATIM)
add_test(NAME booty-bay-shore-bc1 COMMAND ${Python3_EXECUTABLE}
${CMAKE_CURRENT_SOURCE_DIR}/tests/booty_bay_shore_bc1_test.py)
set_tests_properties(booty-bay-shore-bc1 PROPERTIES SKIP_RETURN_CODE 77 LABELS local-content)
add_custom_target(booty-bay-source-water-tests
COMMAND ${Python3_EXECUTABLE} -m py_compile
${CMAKE_CURRENT_SOURCE_DIR}/ops/booty_bay_source_water.py
${CMAKE_CURRENT_SOURCE_DIR}/tests/booty_bay_source_water_test.py VERBATIM)
add_test(NAME booty-bay-source-water COMMAND ${Python3_EXECUTABLE}
${CMAKE_CURRENT_SOURCE_DIR}/tests/booty_bay_source_water_test.py)
set_tests_properties(booty-bay-source-water PROPERTIES SKIP_RETURN_CODE 77 LABELS local-content)
add_custom_target(login-worker-lock-tests
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/login_worker_lock_test.py
--build --output ${CMAKE_CURRENT_BINARY_DIR}/login-worker-lock-tests VERBATIM)
add_test(NAME login-worker-lock COMMAND ${Python3_EXECUTABLE}
${CMAKE_CURRENT_SOURCE_DIR}/tests/login_worker_lock_test.py
--output ${CMAKE_CURRENT_BINARY_DIR}/login-worker-lock-tests)
set_tests_properties(login-worker-lock PROPERTIES TIMEOUT 120)
add_executable(source-realm-query-tests tests/realm_query_test.cpp)
target_include_directories(source-realm-query-tests PRIVATE include)
add_test(NAME source-realm-query COMMAND source-realm-query-tests)
add_custom_target(source-creation-challenges-tests
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/source_creation_challenges_test.py
--build --output ${CMAKE_CURRENT_BINARY_DIR}/source-creation-challenges-tests
VERBATIM)
add_test(NAME source-creation-challenges COMMAND ${Python3_EXECUTABLE}
${CMAKE_CURRENT_SOURCE_DIR}/tests/source_creation_challenges_test.py
--output ${CMAKE_CURRENT_BINARY_DIR}/source-creation-challenges-tests)
add_executable(native-party-target-cast-tests tests/native_party_target_cast_test.cpp)
target_include_directories(native-party-target-cast-tests PRIVATE native)
target_link_libraries(native-party-target-cast-tests PRIVATE gateway_native gateway_protocol)
add_test(NAME native-party-target-cast COMMAND native-party-target-cast-tests)
add_custom_target(editor-ui-launcher-tests COMMAND ${Python3_EXECUTABLE} -m py_compile ${CMAKE_CURRENT_SOURCE_DIR}/ops/editor/launcher.py ${CMAKE_CURRENT_SOURCE_DIR}/ops/editor/session_capture.py ${CMAKE_CURRENT_SOURCE_DIR}/ops/editor/spawn_undo.py ${CMAKE_CURRENT_SOURCE_DIR}/tests/editor_ui_launcher_test.py)
add_test(NAME editor-ui-launcher COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tests/editor_ui_launcher_test.py)