Skip to content

Commit 672e6f3

Browse files
authored
Add sourcing ROS env (#27)
* fix: added sourcing ROS and local packages' environment
1 parent 00d91c1 commit 672e6f3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ build-all:
3131

3232
.PHONY: test-all
3333
test-all:
34+
source ${ROS_ROOT}/setup.sh
35+
source install/setup.sh
3436
colcon --log-base /dev/null test \
3537
--ctest-args tests --symlink-install \
3638
--executor parallel --parallel-workers $$(nproc) \
@@ -49,6 +51,8 @@ build:
4951
.PHONY: test
5052
# packages="first_pkg second_pkg third_pkg..."
5153
test:
54+
source ${ROS_ROOT}/setup.sh
55+
source install/setup.sh
5256
colcon --log-base /dev/null test --ctest-args tests --symlink-install \
5357
--executor parallel --parallel-workers $$(nproc) \
5458
--event-handlers console_cohesion+ --packages-select $(packages)

0 commit comments

Comments
 (0)