Files
wehub-resource-sync db1d565b64
Integration Tests / melodic (push) Has been cancelled
Integration Tests / noetic (push) Has been cancelled
Integration Tests / humble (push) Has been cancelled
Integration Tests / jazzy (push) Has been cancelled
Ruff Lint & Format / ruff (push) Has been cancelled
Sync main to develop / Check if sync is needed (push) Has been cancelled
Sync main to develop / Sync main to develop (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:36:23 +08:00

41 lines
988 B
Bash
Executable File

#!/bin/bash
# Run cross-tests: verify each distro is detected as the correct ROS version.
# Usage: ./tests/integration/scripts/run-all-cross-tests.sh
set -e
cd "$(git rev-parse --show-toplevel)"
PASSED=()
FAILED=()
run_check() {
local distro="$1"
local expected="$2"
echo ""
echo "========================================"
echo " $distro → expecting $expected"
echo "========================================"
if ./tests/integration/scripts/run-cross-test.sh "$distro" "$expected"; then
PASSED+=("$distro=$expected")
else
FAILED+=("$distro=$expected")
fi
}
# Correct expectations — all should PASS
run_check melodic ROS1
run_check noetic ROS1
run_check humble ROS2
run_check jazzy ROS2
echo ""
echo "========================================"
echo " RESULTS"
echo "========================================"
echo "Passed: ${PASSED[*]:-none}"
echo "Failed: ${FAILED[*]:-none}"
if [ ${#FAILED[@]} -gt 0 ]; then
exit 1
fi