Skip to content

Commit

Permalink
Add ament tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bjsowa committed Jun 21, 2024
1 parent 1092633 commit 09cf1c5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions leo_docking/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ install(PROGRAMS
)

if(BUILD_TESTING)
#find_package(ament_cmake_pytest REQUIRED)
#ament_add_pytest_test(${PROJECT_NAME}_test .)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
endif()

ament_package()
7 changes: 7 additions & 0 deletions leo_docking/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@
<exec_depend>aruco_opencv</exec_depend>
<exec_depend>aruco_opencv_msgs</exec_depend>

<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_cmake_black</test_depend>
<test_depend>ament_cmake_copyright</test_depend>
<test_depend>ament_cmake_lint_cmake</test_depend>
<test_depend>ament_cmake_mypy</test_depend>
<test_depend>ament_cmake_xmllint</test_depend>

<export>
<build_type>ament_cmake</build_type>
</export>
Expand Down
2 changes: 2 additions & 0 deletions leo_docking_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ rosidl_generate_interfaces(${PROJECT_NAME}
)

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
endif()

ament_package()
4 changes: 4 additions & 0 deletions leo_docking_msgs/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@

<depend>std_msgs</depend>

<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_cmake_lint_cmake</test_depend>
<test_depend>ament_cmake_xmllint</test_depend>

<export>
<build_type>ament_cmake</build_type>
</export>
Expand Down

0 comments on commit 09cf1c5

Please sign in to comment.