#!/usr/bin/env bash # 测试脚本:bash scripts/test.sh [预设名,默认 debug] set -euo pipefail cd "$(dirname "$0")/.." PRESET="${1:-debug}" cmake --preset "$PRESET" cmake --build --preset "$PRESET" ctest --preset "$PRESET" --output-on-failure