Add comprehensive tests for entity dispatch, file system, fixed map, flex archive, isometric controls, and crash setup

- Enhance `entity_dispatch_entry_tests.cpp` with additional assertions for event type checks, group ID increments, and error handling.
- Refactor `file_system_tests.cpp` to streamline probe execution and enhance output validation.
- Extend `fixed_map_tests.cpp` to cover retail map loading, item classification, and process creation scenarios.
- Introduce new checks in `flex_archive_tests.cpp` for usecode loading and event handling, ensuring robust validation of game data.
- Add tests in `isometric_controls_tests.cpp` for controller direction mapping based on scan codes.
- Implement `test_crash_setup.cpp` to initialize crash diagnostics for improved error handling during tests.
This commit is contained in:
Maddo 2026-09-26 15:36:11 +02:00
commit c346b0e1a7
17 changed files with 1207 additions and 92 deletions

View file

@ -17,6 +17,7 @@ add_library(remorse_core
src/runtime.cpp
src/shape_archive.cpp
src/type_flags.cpp
src/usecode_archive.cpp
)
target_compile_features(remorse_core PUBLIC cxx_std_17)
@ -155,6 +156,16 @@ target_link_libraries(combat_tactics_tests PRIVATE remorse_core)
add_test(NAME combat_tactics_tests COMMAND combat_tactics_tests)
add_library(remorse_test_crash_setup OBJECT tests/test_crash_setup.cpp)
target_link_libraries(remorse_test_crash_setup PRIVATE remorse_core)
foreach(test_target IN ITEMS
entity_dispatch_entry_tests file_system_tests palette_tests flex_archive_tests
fixed_map_tests glob_archive_tests type_flags_tests shape_archive_tests
map_renderer_tests map_sorter_tests isometric_controls_tests
animation_archive_tests collision_tests combat_tactics_tests)
target_sources(${test_target} PRIVATE $<TARGET_OBJECTS:remorse_test_crash_setup>)
endforeach()
if(MSVC)
target_compile_options(remorse_core PRIVATE /W4 /permissive-)
target_compile_options(combat_tactics_tests PRIVATE /W4 /permissive-)