Files
swift-mirror/validation-test/BuildSystem/build_worktree.test
Eric Miotto 5d304fb803 Ensure build_worktree.test runs on Apple Silicon.
It looks like in this configuration we need to convince `build-script`
we have `ninja` sources in the worktree.

Resolves #79256
Addresses rdar://144503319
2025-02-10 10:10:06 -08:00

21 lines
761 B
Plaintext

# REQUIRES: OS=macosx
# REQUIRES: standalone_build
# REQUIRES: target-same-as-host
# RUN: %empty-directory(%t)
# RUN: %empty-directory(%t/build)
# RUN: %empty-directory(%t/ninja)
# Set up a local clone of swift in a temporary workspace and add a sibling
# linked worktree to the clone.
# RUN: git clone --depth 1 file://%swift_src_root %t/swift
# RUN: git -C %t/swift worktree add --detach %t/swift-worktree
# Invoke the build script from the worktree.
# RUN: %t/swift-worktree/utils/build-script --dry-run | %FileCheck -DARCH=%target-arch %s
# We should generate a build system for the linked worktree, not the main
# worktree.
# CHECK: {{^}}+ mkdir -p {{.*}}/swift-macosx-[[ARCH]]{{$}}
# CHECK: {{^}}+ env {{.+}}/cmake -G Ninja {{.*}}/swift-worktree{{$}}