tests: extract_names_from_hash, file_send_prepare [not finished]

This commit is contained in:
2026-06-19 16:46:54 +03:00
parent 573907a0c5
commit 2f78bd8373
6 changed files with 175 additions and 10 deletions
+34 -1
View File
@@ -30,4 +30,37 @@ target_link_libraries(file_list
target_link_options(file_list PRIVATE -Wl,--wrap=db_get_files_data,--wrap=write)
add_test(NAME file_p_file_list_test_1 COMMAND file_list)
add_test(NAME file_p_file_list_test_1 COMMAND file_list)
# ---/ extract_names_from_hash /-------------------------------------
add_executable(extract_names_from_hash
extract_names_from_hash.c
utils.c
)
target_link_libraries(extract_names_from_hash
cmocka
file_p
main
)
add_test(NAME file_p_extract_names_from_hash_test_1 COMMAND extract_names_from_hash)
# ---/ file_send_prepare /-------------------------------------------
add_executable(file_send_prepare
file_send_prepare.c
utils.c
)
target_link_libraries(file_send_prepare
cmocka
file_p
main
utils
)
target_link_options(file_list PRIVATE -Wl,--wrap=db_get_files_data,--wrap=write,--wrap=print_log,--wrap=lseek,--wrap=open)
add_test(NAME file_p_file_send_prepare_test_1 COMMAND file_send_prepare)