#!/bin/zsh set -euo pipefail ROOT="$(cd "$(dirname "$0")/.." && pwd)" cd "$ROOT" mkdir -p .build/test-logs LOG=".build/test-logs/test-$(date +%Y%m%d-%H%M%S).log" { echo '=== ORIONTOOLBAR REGRESSION TESTS ===' echo 'Source contracts (non-destructive)' /usr/bin/env python3 -m unittest discover -s tests -p 'test_*.py' -v if [[ "${1:-}" == '--live' || "${1:-}" == '--all' ]]; then echo 'Read-only Parallels integration checks' ORION_LIVE=1 /usr/bin/env python3 -m unittest discover -s tests -p 'test_*.py' -v fi if [[ "${1:-}" == '--build' || "${1:-}" == '--all' ]]; then echo 'Xcode build (does not launch app)' /bin/zsh scripts/build.sh fi } 2>&1 | tee "$LOG" echo "Test log: $LOG"