Stabilize rapid workspace switching handoff

This commit is contained in:
Lawrence Chen 2026-02-18 21:17:53 -08:00
parent a723bbaa6a
commit 7aa80b9cdc
7 changed files with 664 additions and 30 deletions

21
scripts/test-unit.sh Executable file
View file

@ -0,0 +1,21 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
PROJECT="GhosttyTabs.xcodeproj"
SCHEME="cmux-unit"
CONFIGURATION="${CMUX_TEST_CONFIGURATION:-Debug}"
DESTINATION="${CMUX_TEST_DESTINATION:-platform=macOS}"
# Default to `test` when no explicit xcodebuild action is provided.
if [ "$#" -eq 0 ]; then
set -- test
fi
exec xcodebuild \
-project "$PROJECT" \
-scheme "$SCHEME" \
-configuration "$CONFIGURATION" \
-destination "$DESTINATION" \
"$@"