Skip to content

Commit

Permalink
(fix) Removes testing to keep build stable until dependencies are mer…
Browse files Browse the repository at this point in the history
…ged in rosdistro
  • Loading branch information
aleph-ra committed Jan 28, 2025
1 parent 7e51ea5 commit d3c9317
Showing 1 changed file with 27 additions and 26 deletions.
53 changes: 27 additions & 26 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,31 +47,32 @@ ament_export_dependencies(rosidl_default_runtime)
ament_python_install_package(ros_sugar)


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

# pytest scripts are to be found in the source tree.
ament_add_pytest_test(events_pytest "test/events_test.py"
PYTHON_EXECUTABLE "${_PYTHON_EXECUTABLE}"
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/test"
)

ament_add_pytest_test(actions_pytest "test/actions_test.py"
PYTHON_EXECUTABLE "${_PYTHON_EXECUTABLE}"
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/test"
)

ament_add_pytest_test(component_timed_pytest "test/component/timed_run_test.py"
PYTHON_EXECUTABLE "${_PYTHON_EXECUTABLE}"
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/test"
)

ament_add_pytest_test(component_server_pytest "test/component/server_run_test.py"
PYTHON_EXECUTABLE "${_PYTHON_EXECUTABLE}"
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/test"
)
endif()
#NOTE: Remove testing for ROS build farm until required package names are merged in rosdistro
# if(BUILD_TESTING)
# find_package(ament_lint_auto REQUIRED)
# find_package(ament_cmake_pytest REQUIRED)
# ament_lint_auto_find_test_dependencies()
#
# # pytest scripts are to be found in the source tree.
# ament_add_pytest_test(events_pytest "test/events_test.py"
# PYTHON_EXECUTABLE "${_PYTHON_EXECUTABLE}"
# WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/test"
# )
#
# ament_add_pytest_test(actions_pytest "test/actions_test.py"
# PYTHON_EXECUTABLE "${_PYTHON_EXECUTABLE}"
# WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/test"
# )
#
# ament_add_pytest_test(component_timed_pytest "test/component/timed_run_test.py"
# PYTHON_EXECUTABLE "${_PYTHON_EXECUTABLE}"
# WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/test"
# )
#
# ament_add_pytest_test(component_server_pytest "test/component/server_run_test.py"
# PYTHON_EXECUTABLE "${_PYTHON_EXECUTABLE}"
# WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/test"
# )
# endif()

ament_package()

0 comments on commit d3c9317

Please sign in to comment.