Expand WASM sim-config staging coverage

This commit is contained in:
2026-06-09 07:32:15 +08:00
parent 2658ee3b72
commit 5116b9894d
26 changed files with 5989 additions and 141 deletions

View File

@@ -81,9 +81,33 @@ find_nearest_ini() {
return 1
}
find_ini_by_open_file() {
local ngc="$1"
local ngc_dir="$2"
local ini open_file resolved
while IFS= read -r ini; do
open_file="$(ini_value "$ini" DISPLAY OPEN_FILE || true)"
[[ -z "$open_file" ]] && continue
if [[ "$open_file" = /* ]]; then
resolved="$open_file"
else
resolved="$(realpath -m "$(dirname "$ini")/$open_file")"
fi
if [[ "$resolved" == "$(realpath -m "$ngc")" ]]; then
printf '%s\n' "$ini"
return 0
fi
done < <(find "$ngc_dir" -maxdepth 1 -type f -name '*.ini' | sort)
return 1
}
find_sim_ini() {
local rel="$1"
local ngc_dir="$2"
local ngc="$3"
if find_ini_by_open_file "$ngc" "$ngc_dir"; then
return 0
fi
case "$rel" in
axis/vismach/5axis/table-rotary_spindle-rotary-nutating/demos/*)
printf '%s\n' "$SIM_DIR/axis/vismach/5axis/table-rotary_spindle-rotary-nutating/xyzacb-trsrn_twp/xyzacb-trsrn.ini"
@@ -289,7 +313,7 @@ while IFS= read -r ngc; do
continue
fi
ini="$(find_sim_ini "$rel" "$(dirname "$ngc")" || true)"
ini="$(find_sim_ini "$rel" "$(dirname "$ngc")" "$ngc" || true)"
if [[ -z "$ini" ]]; then
printf '%s\tunsupported_runtime_edge\tmissing-ini\n' "$rel" >> "$BUILD_DIR/skipped.tsv"
skip=$((skip + 1))