testing: server_main_loop [init]
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# ---/ start_server /--------------------------------------------------
|
||||
# ---/ start_server /------------------------------------------------
|
||||
|
||||
add_executable(start_server
|
||||
start_server.c
|
||||
@@ -19,7 +19,7 @@ target_link_options(start_server PRIVATE -Wl,--wrap=socket,--wrap=setsockopt,--w
|
||||
|
||||
add_test(NAME client_start_server_test_1 COMMAND start_server)
|
||||
|
||||
# ---/ prepare_start /--------------------------------------------------
|
||||
# ---/ prepare_start /-----------------------------------------------
|
||||
|
||||
add_executable(prepare_start
|
||||
prepare_start.c
|
||||
@@ -36,6 +36,27 @@ target_link_libraries(prepare_start
|
||||
test_utils
|
||||
)
|
||||
|
||||
target_link_options(prepare_start PRIVATE -Wl,--wrap=print_log,--wrap=print_log,--wrap=chdir,--wrap=mkdir,--wrap=exit,--wrap=directory_exists)
|
||||
target_link_options(prepare_start PRIVATE -Wl,--wrap=print_log,--wrap=chdir,--wrap=mkdir,--wrap=exit,--wrap=directory_exists)
|
||||
|
||||
add_test(NAME client_prepare_start_test_1 COMMAND prepare_start)
|
||||
add_test(NAME client_prepare_start_test_1 COMMAND prepare_start)
|
||||
|
||||
# ---/ server_main_loop /--------------------------------------------
|
||||
|
||||
add_executable(server_main_loop
|
||||
server_main_loop.c
|
||||
)
|
||||
|
||||
target_link_libraries(server_main_loop
|
||||
cmocka
|
||||
client
|
||||
file_p
|
||||
session
|
||||
utils
|
||||
main
|
||||
server
|
||||
test_utils
|
||||
)
|
||||
|
||||
target_link_options(server_main_loop PRIVATE -Wl,--wrap=print_log)
|
||||
|
||||
add_test(NAME client_server_main_loop_test_1 COMMAND server_main_loop)
|
||||
Reference in New Issue
Block a user