SPB Git

spb/zyquo-cloud Public MIT

Native macOS AI chat client for 12 cloud providers — your keys, every cloud model, one beautiful chat.

Swift 97.4% Shell 1.7% Makefile 1%
1.2 KB · 37 lines shellscript
Raw Blame History
1#!/bin/bash2#3#  test.sh4#  Zyquo Cloud5#6#  Author: Simon-Pierre Boucher7#  Mail: contact@spboucher.ai8#9#  Runs the test suite. Works with Command Line Tools only (no Xcode): CLT's10#  Testing.framework isn't on the test bundle's runtime search path, so it is11#  symlinked into the build products dir before running.12#13set -euo pipefail14cd "$(dirname "$0")/.."1516CLT="/Library/Developer/CommandLineTools"17# See Makefile: SDK 27 SwiftUI macros need Xcode; pin to SDK 26.18export SDKROOT="$CLT/SDKs/MacOSX26.sdk"19CLT_FRAMEWORKS="$CLT/Library/Developer/Frameworks"20TESTING_PLUGINS="$CLT/usr/lib/swift/host/plugins/testing"2122swift build --build-tests -Xswiftc -plugin-path -Xswiftc "$TESTING_PLUGINS"2324for products in .build/out/Products/Debug .build/debug; do25    if [ -d "$products" ]; then26        mkdir -p "$products/PackageFrameworks"27        for fw in "$CLT_FRAMEWORKS"/*.framework; do28            name="$(basename "$fw")"29            ln -sfn "$fw" "$products/PackageFrameworks/$name"30        done31        ln -sfn "$CLT/Library/Developer/usr/lib/lib_TestingInterop.dylib" \32            "$products/PackageFrameworks/lib_TestingInterop.dylib"33    fi34done3536swift test --skip-build "$@"37