Add unit tests for opening AaruFormat images in open_image.cpp

This commit is contained in:
2025-10-09 17:00:38 +01:00
parent 3926d8f41e
commit 714a2d9c5d
2 changed files with 119 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/data/lzma.bin DESTINATION ${CMAKE_CURRENT_
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/data/data.bin DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/data/)
# Test executable (all unit tests)
add_executable(tests_run crc64.cpp spamsum.cpp crc32.c crc32.h flac.cpp lzma.cpp sha256.cpp md5.cpp sha1.cpp)
add_executable(tests_run crc64.cpp spamsum.cpp crc32.c crc32.h flac.cpp lzma.cpp sha256.cpp md5.cpp sha1.cpp open_image.cpp)
# Link libraries
target_link_libraries(tests_run PRIVATE gtest gtest_main aaruformat)