tests: extract_names_from_hash, file_send_prepare [not finished]
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user