Skip to content

Commit

Permalink
fix: added ROS2 setup script before colcon test
Browse files Browse the repository at this point in the history
  • Loading branch information
dfbakin committed Mar 31, 2024
1 parent 4660c03 commit f776830
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ build-all:

.PHONY: test-all
test-all:
source ${ROS_ROOT}/setup.sh
colcon --log-base /dev/null test \
--ctest-args tests --symlink-install \
--executor parallel --parallel-workers $$(nproc) \
Expand All @@ -49,6 +50,7 @@ build:
.PHONY: test
# packages="first_pkg second_pkg third_pkg..."
test:
source ${ROS_ROOT}/setup.sh
colcon --log-base /dev/null test --ctest-args tests --symlink-install \
--executor parallel --parallel-workers $$(nproc) \
--event-handlers console_cohesion+ --packages-select $(packages)
Expand Down

0 comments on commit f776830

Please sign in to comment.