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:
20
tools/test/smoke/macro/test_runner_basic_smoke.sh
Normal file
20
tools/test/smoke/macro/test_runner_basic_smoke.sh
Normal file
@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
root=$(cd "$(dirname "$0")"/../../../.. && pwd)
|
||||
bin="$root/target/release/nyash"
|
||||
file="apps/tests/macro_test_runner_basic.nyash"
|
||||
|
||||
if [ ! -x "$bin" ]; then
|
||||
echo "nyash binary not found at $bin; build first (cargo build --release)" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
out=$("$bin" --run-tests "$file" 2>&1 | sed -e 's/\r$//')
|
||||
echo "$out"
|
||||
|
||||
grep -q "PASS test_true" <<<"$out"
|
||||
grep -q "PASS test_one_equals_one" <<<"$out"
|
||||
|
||||
echo "[OK] test_runner_basic passed"
|
||||
|
||||
Reference in New Issue
Block a user