check.sh (688B)
1 #!/bin/zsh 2 # Offline checks: no HID commands, display changes or USB-PD resets. 3 set -euo pipefail 4 cd "$(dirname "$0")/.." 5 mkdir -p .build/checks 6 swiftc -O Sources/VRWorkstation/Calibration.swift Tests/CalibrationChecks.swift -o .build/checks/calibration 7 .build/checks/calibration 8 swiftc Sources/VRWorkstation/LinkRecovery.swift Sources/VRWorkstation/MainRunLoop.swift Tests/LinkRecoveryChecks.swift -o .build/checks/recovery 9 .build/checks/recovery 10 if [[ $# -gt 0 ]]; then 11 swiftc -O -D LENS_WARP_CHECKS Sources/VRWorkstation/Calibration.swift Sources/VRWorkstation/LensWarp.swift Tests/LensWarpChecks.swift -o .build/checks/lenswarp -framework Metal 12 .build/checks/lenswarp "$1" 13 fi