Add unit testcase for thread-pool.

Extract thread-pool into a separate CMake library.
Extract utils into a separate CMake library.
This commit is contained in:
Bartosz Podrygajlo
2024-06-26 10:17:25 +02:00
parent deacf439a4
commit b1f7cc9025
7 changed files with 151 additions and 140 deletions
@@ -0,0 +1,6 @@
add_executable(test_thread-pool
test_thread-pool.c)
add_dependencies(tests test_thread-pool)
target_link_libraries(test_thread-pool PRIVATE thread-pool pthread LOG minimal_lib)
add_test(NAME test_thread-pool
COMMAND ./test_thread-pool)