Add linting tests to both tracetools* packages
This commit is contained in:
parent
3022d678f9
commit
51f3c16205
4 changed files with 13 additions and 0 deletions
|
@ -91,4 +91,9 @@ else()
|
||||||
ament_export_libraries(${PROJECT_NAME})
|
ament_export_libraries(${PROJECT_NAME})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(BUILD_TESTING)
|
||||||
|
find_package(ament_lint_auto REQUIRED)
|
||||||
|
ament_lint_auto_find_test_dependencies()
|
||||||
|
endif()
|
||||||
|
|
||||||
ament_package()
|
ament_package()
|
||||||
|
|
|
@ -13,6 +13,9 @@
|
||||||
|
|
||||||
<!-- explicitly not depending on LTTng -->
|
<!-- explicitly not depending on LTTng -->
|
||||||
|
|
||||||
|
<test_depend>ament_lint_auto</test_depend>
|
||||||
|
<test_depend>ament_lint_common</test_depend>
|
||||||
|
|
||||||
<export>
|
<export>
|
||||||
<build_type>ament_cmake</build_type>
|
<build_type>ament_cmake</build_type>
|
||||||
</export>
|
</export>
|
||||||
|
|
|
@ -86,6 +86,9 @@ if(BUILD_TESTING)
|
||||||
DESTINATION lib/${PROJECT_NAME}
|
DESTINATION lib/${PROJECT_NAME}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
find_package(ament_lint_auto REQUIRED)
|
||||||
|
ament_lint_auto_find_test_dependencies()
|
||||||
|
|
||||||
find_package(ament_cmake_pytest REQUIRED)
|
find_package(ament_cmake_pytest REQUIRED)
|
||||||
|
|
||||||
# Run each test in its own pytest invocation
|
# Run each test in its own pytest invocation
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
<exec_depend>std_srvs</exec_depend>
|
<exec_depend>std_srvs</exec_depend>
|
||||||
|
|
||||||
<test_depend>ament_cmake_pytest</test_depend>
|
<test_depend>ament_cmake_pytest</test_depend>
|
||||||
|
<test_depend>ament_lint_auto</test_depend>
|
||||||
|
<test_depend>ament_lint_common</test_depend>
|
||||||
<test_depend>launch_ros</test_depend>
|
<test_depend>launch_ros</test_depend>
|
||||||
<test_depend>python3-pytest</test_depend>
|
<test_depend>python3-pytest</test_depend>
|
||||||
<test_depend>tracetools_trace</test_depend>
|
<test_depend>tracetools_trace</test_depend>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue