Skip to content

Commit 74a4684

Browse files
committed
Add ament_lint tests
1 parent 0d263d5 commit 74a4684

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,13 @@ install(DIRECTORY include/${PROJECT_NAME}/
8181
FILES_MATCHING PATTERN "*.h" PATTERN "*.hpp"
8282
)
8383

84+
###########
85+
## Tests ##
86+
###########
87+
88+
if(BUILD_TESTING)
89+
find_package(ament_lint_auto REQUIRED)
90+
ament_lint_auto_find_test_dependencies()
91+
endif()
92+
8493
ament_package()

package.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@
2929
<exec_depend>ffmpeg</exec_depend>
3030
<exec_depend>sensor_msgs</exec_depend>
3131

32+
<test_depend>ament_lint_auto</test_depend>
33+
<test_depend>ament_cmake_lint_cmake</test_depend>
34+
<test_depend>ament_cmake_xmllint</test_depend>
35+
<test_depend>ament_cmake_uncrustify</test_depend>
36+
3237
<export>
3338
<build_type>ament_cmake</build_type>
3439
</export>

0 commit comments

Comments
 (0)