参考所有分组,完成尽量多的内容。禁止顺手扩功能 smoke

结论:收敛第 6 组 WASM manifest/source-link 约束,WASM manifest source lister 明确拒绝 core,header 这类复合 filter,避免 source coverage 查询静默误用;未扩展 smoke 功能。验证:./test-linuxcnc-wasm-cmake-safe-probe.sh linuxcnc-rs274-wasm-source-files.txt、./test-native.sh、./test-linuxcnc-source-link.sh 均通过。
This commit is contained in:
cnc
2026-06-03 19:28:43 +08:00
parent 4a3d87045e
commit bba306ccfe

View File

@@ -942,6 +942,15 @@ grep -Fx "src/emc/tooldata/tooldata_mmap.cc" <<<"$wasm_manifest_blocked" >/dev/n
wasm_manifest_blocked_header=$(./list-linuxcnc-wasm-manifest-sources.sh "$manifest" blocked-header)
grep -Fx "src/emc/rs274ngc/boost_pyenum_macros.hh" <<<"$wasm_manifest_blocked_header" >/dev/null
unknown_manifest_filter_log=$(mktemp "${TMPDIR:-/tmp}/cnc_sim_unknown_wasm_manifest_filter.XXXXXX.log")
if ./list-linuxcnc-wasm-manifest-sources.sh "$manifest" core,header >"$unknown_manifest_filter_log" 2>&1; then
echo "wasm manifest source lister accepted a compound filter" >&2
exit 1
fi
if ! grep -F "manifest source filter must be a manifest group name: core,header" "$unknown_manifest_filter_log" >/dev/null; then
echo "wasm manifest source lister did not report compound filters clearly" >&2
sed -n '1,20p' "$unknown_manifest_filter_log" >&2
exit 1
fi
if ./list-linuxcnc-wasm-manifest-sources.sh "$manifest" bogus >"$unknown_manifest_filter_log" 2>&1; then
echo "wasm manifest source lister accepted unknown filter" >&2
exit 1