Skip to content

Commit

Permalink
Add unit testing for request cancellation
Browse files Browse the repository at this point in the history
  • Loading branch information
Tabrizian committed Aug 31, 2023
1 parent 03d0d0f commit b20f7b5
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions src/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -534,3 +534,43 @@ install(
TARGETS register_api_test
RUNTIME DESTINATION bin
)

#
# Request Cancellation Unittest
#
add_executable(
request_cancellation_test
request_cancellation_test.cc
)

set_target_properties(
request_cancellation_test
PROPERTIES
SKIP_BUILD_RPATH TRUE
BUILD_WITH_INSTALL_RPATH TRUE
INSTALL_RPATH_USE_LINK_PATH FALSE
INSTALL_RPATH ""
)

target_include_directories(
request_cancellation_test
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/..
${CMAKE_CURRENT_SOURCE_DIR}/../../include
${GTEST_INCLUDE_DIRS}
)

target_link_libraries(
request_cancellation_test
PRIVATE
triton-common-error # from repo-common
triton-common-logging # from repo-common
triton-core
GTest::gtest
GTest::gtest_main
)

install(
TARGETS request_cancellation_test
RUNTIME DESTINATION bin
)

0 comments on commit b20f7b5

Please sign in to comment.