mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-18 05:18:08 +00:00
![copilot-swe-agent[bot]](/assets/img/avatar_default.png)
- Add 4 tests covering ActivityComponent serialization behavior - Test no players, players with data, initial update, and not dirty scenarios - Use ScriptedActivityComponent (concrete implementation) for Entity template system compatibility - Validate activity player data serialization format with 10 float values per player - All tests pass, verifying network data transmission correctness Co-authored-by: aronwk-aaron <26027722+aronwk-aaron@users.noreply.github.com>
23 lines
738 B
CMake
23 lines
738 B
CMake
set(DCOMPONENTS_TESTS
|
|
"ActivityComponentTests.cpp"
|
|
"DestroyableComponentTests.cpp"
|
|
"HavokVehiclePhysicsComponentTests.cpp"
|
|
"ModelComponentTests.cpp"
|
|
"MovingPlatformComponentTests.cpp"
|
|
"PetComponentTests.cpp"
|
|
"SimplePhysicsComponentTests.cpp"
|
|
"SavingTests.cpp"
|
|
)
|
|
|
|
# Get the folder name and prepend it to the files above
|
|
get_filename_component(thisFolderName ${CMAKE_CURRENT_SOURCE_DIR} NAME)
|
|
list(TRANSFORM DCOMPONENTS_TESTS PREPEND "${thisFolderName}/")
|
|
|
|
# Export to parent scope
|
|
set(DCOMPONENTS_TESTS ${DCOMPONENTS_TESTS} PARENT_SCOPE)
|
|
|
|
# Copy test files to testing directory
|
|
add_subdirectory(TestData)
|
|
list(TRANSFORM COMPONENT_TEST_DATA PREPEND "${thisFolderName}/")
|
|
set(COMPONENT_TEST_DATA ${COMPONENT_TEST_DATA} PARENT_SCOPE)
|