Files
swift-mirror/validation-test/BuildSystem/build_worktree.test
Anthony Latsis 4a5e0daa9d build: Unhardcode Swift source directory name
This is useful if you maintain several swift worktrees that reside in
the source root directory.
2025-01-07 09:58:47 +00:00

20 lines
727 B
Plaintext

# REQUIRES: OS=macosx
# REQUIRES: standalone_build
# REQUIRES: target-same-as-host
# RUN: %empty-directory(%t)
# RUN: %empty-directory(%t/build)
# 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{{$}}