Run status tool executable as test in tracetools
Backport (with modification) of afee11747bfd548a43a368bd0e17fe73d8bf01f9 from !216 Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
This commit is contained in:
parent
b06e48e08d
commit
03fa84df8b
1 changed files with 9 additions and 0 deletions
|
@ -137,6 +137,15 @@ if(BUILD_TESTING)
|
||||||
set(ament_cmake_cppcheck_ADDITIONAL_INCLUDE_DIRS ${LTTNG_INCLUDE_DIRS})
|
set(ament_cmake_cppcheck_ADDITIONAL_INCLUDE_DIRS ${LTTNG_INCLUDE_DIRS})
|
||||||
find_package(ament_lint_auto REQUIRED)
|
find_package(ament_lint_auto REQUIRED)
|
||||||
ament_lint_auto_find_test_dependencies()
|
ament_lint_auto_find_test_dependencies()
|
||||||
|
|
||||||
|
if(TRACETOOLS_STATUS_CHECKING_TOOL)
|
||||||
|
# Run status tool executable as test and set pass/fail expectation appropriately
|
||||||
|
add_test(test_status_tool status)
|
||||||
|
if(NOT TRACETOOLS_LTTNG_ENABLED)
|
||||||
|
set_tests_properties(test_status_tool PROPERTIES WILL_FAIL TRUE)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
ament_package()
|
ament_package()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue