Implement M5.6 canonical world snapshots and edit journals
This commit is contained in:
+19
-1
@@ -34,7 +34,8 @@ target_include_directories(evo_simulation PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/in
|
||||
target_compile_features(evo_simulation PUBLIC cxx_std_23)
|
||||
evo_owned_target(evo_simulation)
|
||||
|
||||
add_library(evo_world STATIC src/world/coordinates.cpp src/world/generation.cpp src/world/chunks.cpp src/world/edits.cpp)
|
||||
set(evo_world_sources src/world/coordinates.cpp src/world/generation.cpp src/world/chunks.cpp src/world/edits.cpp src/world/codec.cpp)
|
||||
add_library(evo_world STATIC ${evo_world_sources})
|
||||
add_library(evo::world ALIAS evo_world)
|
||||
target_include_directories(evo_world PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||||
target_compile_features(evo_world PUBLIC cxx_std_23)
|
||||
@@ -71,6 +72,18 @@ evo_owned_target(evo-sim)
|
||||
|
||||
include(CTest)
|
||||
if(BUILD_TESTING)
|
||||
add_executable(evo-world-codec-fuzz-smoke tests/fuzz/world_codec_fuzz.cpp tests/fuzz/world_codec_smoke.cpp)
|
||||
target_link_libraries(evo-world-codec-fuzz-smoke PRIVATE evo::world)
|
||||
evo_owned_target(evo-world-codec-fuzz-smoke)
|
||||
add_test(NAME world-codec-fuzz-smoke COMMAND evo-world-codec-fuzz-smoke)
|
||||
set_tests_properties(world-codec-fuzz-smoke PROPERTIES TIMEOUT 120)
|
||||
|
||||
add_executable(evo-world-codec-tests tests/world_codec_tests.cpp)
|
||||
target_link_libraries(evo-world-codec-tests PRIVATE evo::world)
|
||||
evo_owned_target(evo-world-codec-tests)
|
||||
add_test(NAME world-codec-contracts COMMAND evo-world-codec-tests)
|
||||
set_tests_properties(world-codec-contracts PROPERTIES TIMEOUT 120)
|
||||
|
||||
add_executable(evo-world-edit-tests tests/world_edit_tests.cpp)
|
||||
target_link_libraries(evo-world-edit-tests PRIVATE evo::world)
|
||||
evo_owned_target(evo-world-edit-tests)
|
||||
@@ -254,6 +267,11 @@ if(EVO_BUILD_FUZZER)
|
||||
if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR MSVC OR EVO_SANITIZER STREQUAL "thread")
|
||||
message(FATAL_ERROR "Fuzzing requires Linux Clang and is incompatible with TSan")
|
||||
endif()
|
||||
add_executable(evo-world-codec-fuzz tests/fuzz/world_codec_fuzz.cpp ${evo_world_sources})
|
||||
target_include_directories(evo-world-codec-fuzz PRIVATE include)
|
||||
evo_owned_target(evo-world-codec-fuzz)
|
||||
target_compile_options(evo-world-codec-fuzz PRIVATE -fsanitize=fuzzer,address,undefined -fno-omit-frame-pointer)
|
||||
target_link_options(evo-world-codec-fuzz PRIVATE -fsanitize=fuzzer,address,undefined)
|
||||
# Compile the kernel itself with coverage and sanitizer instrumentation.
|
||||
add_executable(evo-snapshot-fuzz tests/fuzz/snapshot_fuzz.cpp ${evo_simulation_sources})
|
||||
target_include_directories(evo-snapshot-fuzz PRIVATE include)
|
||||
|
||||
Reference in New Issue
Block a user