freeze: macro platform complete; default ON with profiles; env consolidation; docs + smokes\n\n- Profiles: --profile {lite|dev|ci|strict} (dev-like default for macros)\n- Macro paths: prefer NYASH_MACRO_PATHS (legacy envs deprecated with warnings)\n- Selfhost pre-expand: auto mode, PyVM-only, add smokes (array/map)\n- Docs: user-macros updated; new macro-profiles guide; AGENTS freeze note; CURRENT_TASK freeze\n- Compat: non-breaking; legacy envs print deprecation notices\n
This commit is contained in:
27
tools/test/smoke/macro/selfhost_preexpand_array_auto.sh
Normal file
27
tools/test/smoke/macro/selfhost_preexpand_array_auto.sh
Normal file
@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
root=$(cd "$(dirname "$0")"/../../../.. && pwd)
|
||||
bin="$root/target/release/nyash"
|
||||
src="apps/tests/macro_golden_array_prepend_zero.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/array_prepend_zero_macro.nyash"
|
||||
|
||||
export NYASH_USE_NY_COMPILER=1
|
||||
export NYASH_VM_USE_PY=1
|
||||
export NYASH_CLI_VERBOSE=1
|
||||
|
||||
out=$("$bin" --backend vm "$src" 2>&1 || true)
|
||||
|
||||
echo "$out" | rg -q "selfhost macro pre-expand: engaging" && echo "[OK] array pre-expand (auto) engaged" && exit 0
|
||||
|
||||
echo "[WARN] array pre-expand auto did not engage; printing logs:" >&2
|
||||
echo "$out" >&2
|
||||
exit 2
|
||||
|
||||
Reference in New Issue
Block a user