Files
swift-mirror/validation-test/BuildSystem/build_worktree.test
Anthony Latsis 54322b22d5 [test] Pass cmake location to build-script invocation in test
The test fails without it with Xcode 26 beta
2025-08-07 00:09:10 +01:00

21 lines
776 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 --cmake %cmake | %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{{$}}