feat: finished all open things up to and including phase 6
This commit is contained in:
19
test.sh
19
test.sh
@@ -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 )"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user