说明:集中 LinuxCNC 源码清单与 wasm/native probe 的路径解析,补强 manifest、shim、source-link 检查,并保持 LinuxCNC 源码后端对齐验证流程可复用。 验证:./test-native.sh;./test-linuxcnc-source-link.sh;./test-all-native.sh;wasm source/probe 相关脚本。
31 lines
645 B
Bash
Executable File
31 lines
645 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
filter=${1:-}
|
|
|
|
sources=(
|
|
core/src/canon_event_sink.cpp
|
|
core/src/linuxcnc_canon_bridge.cpp
|
|
core/src/rtcp_kinematics.cpp
|
|
)
|
|
|
|
found=0
|
|
for source in "${sources[@]}"; do
|
|
if [[ ! -f "$source" ]]; then
|
|
echo "missing LinuxCNC bridge smoke project source: $source" >&2
|
|
exit 1
|
|
fi
|
|
if [[ -n "$filter" && "$(basename "$source")" != "$filter" ]]; then
|
|
continue
|
|
fi
|
|
found=1
|
|
printf '%s\n' "$source"
|
|
done
|
|
|
|
if [[ -n "$filter" && "$found" -eq 0 ]]; then
|
|
echo "missing LinuxCNC bridge smoke project source in list: $filter" >&2
|
|
exit 1
|
|
fi
|