feat: finished all open things up to and including phase 6

This commit is contained in:
2026-03-21 08:41:13 +01:00
parent 0325fa8964
commit 107ac0524b
9 changed files with 457 additions and 33 deletions

19
test.sh
View File

@@ -6,6 +6,7 @@ BUILD_DIR="$PROJECT_DIR/build"
CONFIG="${1:-Debug}"
APP_NAME="MLX Server"
DESTINATION="${TEST_DESTINATION:-platform=macOS,arch=arm64}"
ONLY_TESTING="${ONLY_TESTING:-}"
echo "==> Testing $APP_NAME ($CONFIG)"
@@ -15,12 +16,20 @@ if command -v xcodegen &>/dev/null; then
fi
# Run tests — filter to test progress, app warnings, build failures, and final result
XCODEBUILD_ARGS=(
-project "$PROJECT_DIR/MLXServer.xcodeproj"
-scheme MLXServer
-destination "$DESTINATION"
-configuration "$CONFIG"
SYMROOT="$BUILD_DIR"
)
if [[ -n "$ONLY_TESTING" ]]; then
XCODEBUILD_ARGS+=( -only-testing "$ONLY_TESTING" )
fi
xcodebuild \
-project "$PROJECT_DIR/MLXServer.xcodeproj" \
-scheme MLXServer \
-destination "$DESTINATION" \
-configuration "$CONFIG" \
SYMROOT="$BUILD_DIR" \
"${XCODEBUILD_ARGS[@]}" \
test 2>&1 | \
grep -E "(Test Suite|Test Case|Executed [0-9]+ tests|Testing started|Testing failed|Testing passed|error:|warning:.*MLXServer/|\*\* TEST|BUILD )"