Files
hakorune/tools/vm_filebox_smoke.sh

20 lines
443 B
Bash

#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR=$(cd "$(dirname "$0")/.." && pwd)
cd "$ROOT_DIR"
echo "[build] nyash (vm)"
cargo build --release
echo "[build] plugins: filebox"
cargo build -p nyash-filebox-plugin --release
mkdir -p tmp
echo -n "OK" > tmp/vm_filebox_smoke.txt
APP="apps/tests/vm-plugin-smoke-filebox/main.nyash"
echo "[run] VM plugin-first strict: $APP"
NYASH_VM_PLUGIN_STRICT=1 ./target/release/nyash --backend vm "$APP"