Skip to content

Commit

Permalink
test(virtual_traffic_light): add unit tests for utils (#9107)
Browse files Browse the repository at this point in the history
Signed-off-by: kosuke55 <[email protected]>
  • Loading branch information
kosuke55 authored Oct 24, 2024
1 parent 25342a9 commit bca5be3
Show file tree
Hide file tree
Showing 3 changed files with 473 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,13 @@ ament_auto_add_library(${PROJECT_NAME} SHARED
)

ament_auto_package(INSTALL_TO_SHARE config)

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
file(GLOB_RECURSE TEST_SOURCES test/*.cpp)
ament_add_ros_isolated_gtest(test_${PROJECT_NAME}
${TEST_SOURCES}
)
target_link_libraries(test_${PROJECT_NAME} ${PROJECT_NAME})
endif()
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<depend>tier4_v2x_msgs</depend>
<depend>visualization_msgs</depend>

<test_depend>ament_cmake_ros</test_depend>
<test_depend>ament_lint_auto</test_depend>
<test_depend>autoware_lint_common</test_depend>

Expand Down
Loading

0 comments on commit bca5be3

Please sign in to comment.