1
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
# scripts/test.sh —— 跑 colcon test,所有 12 包
|
||||
#
|
||||
# 使用:
|
||||
# docker exec ros2_dev bash /root/ros2_ws/scripts/test.sh
|
||||
# make colcon-test
|
||||
set -eo pipefail
|
||||
|
||||
WORKSPACE="${WORKSPACE:-/root/ros2_ws}"
|
||||
source /opt/ros/humble/setup.bash
|
||||
cd "${WORKSPACE}"
|
||||
|
||||
colcon test \
|
||||
--packages-select \
|
||||
py_pubsub cpp_pubsub py_srv py_action_demo \
|
||||
cpp_robot_tf2 py_vision_demo py_params \
|
||||
cpp_custom_interface py_lifecycle_composable \
|
||||
cpp_qos_demo py_overlay_dds bringup
|
||||
|
||||
echo
|
||||
echo "[test.sh] === 测试结果汇总 ==="
|
||||
colcon test-result --all
|
||||
echo "[test.sh] (要看详细日志,跑: colcon test-result --all --verbose)"
|
||||
Reference in New Issue
Block a user