Files
hakorune/tools/test/smoke/macro/loopform_identity_smoke.sh

20 lines
511 B
Bash

#!/usr/bin/env bash
set -euo pipefail
root=$(cd "$(dirname "$0")"/../../../.. && pwd)
bin="$root/target/release/nyash"
src="apps/tests/loop_min_while.nyash"
if [ ! -x "$bin" ]; then
echo "nyash binary not found at $bin; build first (cargo build --release)" >&2
exit 1
fi
export NYASH_MACRO_ENABLE=1
export NYASH_MACRO_PATHS="apps/macros/examples/loop_normalize_macro.nyash"
# Prefer PyVM run to align with macro pipeline
"$bin" --backend vm "$src" >/dev/null
echo "[OK] loopform identity smoke passed"