Path: blob/main/src/resources/extension-subtrees/julia-engine/tests/run-tests.sh
12923 views
#!/usr/bin/env bash1set -euo pipefail23SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"45# Always use the deno bundled with quarto to avoid version mismatches.6# Accepts QUARTO env var or falls back to quarto on PATH.7QUARTO="${QUARTO:-quarto}"89if ! command -v "$QUARTO" &>/dev/null; then10echo "quarto not found. Either set QUARTO=/path/to/quarto or add it to PATH." >&211exit 112fi1314QUARTO_BIN_DIR="$("$QUARTO" --paths | head -1)"1516case "$(uname -m)" in17x86_64) DENO_ARCH_DIR=x86_64 ;;18aarch64|arm64) DENO_ARCH_DIR=aarch64 ;;19*) echo "Unsupported architecture: $(uname -m)" >&2; exit 1 ;;20esac2122DENO="$QUARTO_BIN_DIR/tools/$DENO_ARCH_DIR/deno"2324if [ ! -x "$DENO" ]; then25echo "deno not found at $DENO" >&226exit 127fi2829cd "$SCRIPT_DIR"3031# Run explicit files if given, otherwise discover all .test.ts files32if [ $# -gt 0 ]; then33"$DENO" test --allow-all --no-check "$@"34else35"$DENO" test --allow-all --no-check smoke/36fi373839