Files
CMake/Tests/Module/ExternalData/DataStateRoot/DataStateRootCheck.cmake
2026-03-15 19:27:16 +01:00

10 lines
337 B
CMake

if(NOT EXISTS "${Data}")
message(SEND_ERROR "Input file:\n ${Data}\n" "does not exist!")
endif()
if(EXISTS "${AdjacentHash}")
message(SEND_ERROR "Adjacent hash record exists but should not:\n ${AdjacentHash}")
endif()
if(NOT EXISTS "${StateHash}")
message(SEND_ERROR "State-root hash record is missing:\n ${StateHash}")
endif()