Add linting tests to both tracetools* packages

This commit is contained in:
Christophe Bedard 2019-06-04 13:53:05 +02:00
parent 3022d678f9
commit 51f3c16205
4 changed files with 13 additions and 0 deletions

View file

@ -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()

View file

@ -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>

View file

@ -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

View file

@ -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>