diff --git a/CMakeLists.txt b/CMakeLists.txt index 52bf27d9..7d96b665 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -75,3 +75,5 @@ endif() file(GLOB_RECURSE SOURCE "src/*.cc") target_include_directories(pslite PUBLIC "${PROJECT_SOURCE_DIR}/include/") target_sources(pslite PRIVATE ${SOURCE}) + +add_subdirectory(tests) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt new file mode 100644 index 00000000..3ff72909 --- /dev/null +++ b/tests/CMakeLists.txt @@ -0,0 +1,14 @@ +add_executable(connection_test test_connection.cc) +target_link_libraries(connection_test pslite) + +add_executable(simple_app_test test_simple_app.cc) +target_link_libraries(simple_app_test pslite) + +add_executable(kv_app_test test_kv_app.cc) +target_link_libraries(kv_app_test pslite) + +add_executable(kv_app_benchmark_test test_kv_app_benchmark.cc) +target_link_libraries(kv_app_benchmark_test pslite) + +add_executable(kv_app_multi_workers_test test_kv_app_multi_workers.cc) +target_link_libraries(kv_app_multi_workers_test pslite)