Skip to content

Commit

Permalink
Add in unit tests for the Executor class.
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
  • Loading branch information
clalancette committed Sep 28, 2020
1 parent ad7cb8f commit 027a0f1
Show file tree
Hide file tree
Showing 2 changed files with 461 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rclcpp/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,14 @@ if(TARGET test_rosout_qos)
target_link_libraries(test_rosout_qos ${PROJECT_NAME})
endif()

ament_add_gtest(test_executor rclcpp/test_executor.cpp
APPEND_LIBRARY_DIRS "${append_library_dirs}"
)
if(TARGET test_executor)
ament_target_dependencies(test_executor "rcl")
target_link_libraries(test_executor ${PROJECT_NAME} mimick)
endif()

# Install test resources
install(
DIRECTORY resources
Expand Down
Loading

0 comments on commit 027a0f1

Please sign in to comment.