selfhost/runtime: Stage 0-1 runner + MIR JSON loader (summary) with trace; compiler: scopebox/loopform prepass wiring (flags, child args); libs: add P1 standard boxes (console/string/array/map) as thin wrappers; runner: pass --box-pref via env; ops_calls dispatcher skeleton; docs: selfhost executor roadmap + scopebox/loopform notes; smokes: selfhost runner + identity prepasses; CURRENT_TASK: update plan and box lib schedule
This commit is contained in:
31
tools/test/smoke/loop_phi_values.sh
Normal file
31
tools/test/smoke/loop_phi_values.sh
Normal file
@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
ROOT_DIR=$(cd "$(dirname "$0")/../../.." && pwd)
|
||||
|
||||
echo "[smoke] loop phi values (then-continue + per-var PHI)" >&2
|
||||
|
||||
pushd "$ROOT_DIR" >/dev/null
|
||||
|
||||
cargo build --release -q
|
||||
|
||||
BIN=./target/release/nyash
|
||||
APP=apps/tests/loop_if_phi_continue.nyash
|
||||
|
||||
# Run VM (PyVM) and suppress runner result line to compare pure prints
|
||||
export NYASH_VM_USE_PY=1
|
||||
export NYASH_JSON_ONLY=1
|
||||
out=$("$BIN" --backend vm "$APP")
|
||||
|
||||
expected=$'7\n1'
|
||||
if [[ "$out" != "$expected" ]]; then
|
||||
echo "[smoke] FAIL: unexpected output" >&2
|
||||
echo "--- got ---" >&2
|
||||
printf '%s\n' "$out" >&2
|
||||
echo "--- exp ---" >&2
|
||||
printf '%s\n' "$expected" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "[smoke] OK: loop phi values correct" >&2
|
||||
popd >/dev/null
|
||||
|
||||
Reference in New Issue
Block a user