SPB Git

spb/zyquo-atlas Public License

The AI-native macOS web browser — every surface, intelligent.

Swift 75.2% JavaScript 22% Shell 2% Makefile 0.9%
1.2 KB · 37 lines shellscript
Raw Blame History
1#!/bin/bash2#3#  test.sh4#  Zyquo Atlas5#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: the default SDK's 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