-
Notifications
You must be signed in to change notification settings - Fork 10.4k
/
Copy pathswift-xcodegen.test
28 lines (23 loc) · 1.11 KB
/
swift-xcodegen.test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# RUN: %empty-directory(%t)
# RUN: %empty-directory(%t/src/swift/utils)
# RUN: %empty-directory(%t/out)
# RUN: export PATH="%original_path_env"
# RUN: export SWIFTCI_USE_LOCAL_DEPS=1
# RUN: export SWIFT_BACKTRACE=
# REQUIRES: OS=macosx
# REQUIRES: standalone_build
# REQUIRES: target-same-as-host
# First copy swift-xcodegen to the temporary location
# so we don't touch the user's build, and make sure
# we're doing a clean build.
# RUN: cp -r %swift_src_root/utils/swift-xcodegen %t/src/swift/utils/swift-xcodegen
# RUN: rm -rf %t/src/swift/utils/swift-xcodegen/.build
# Add symlinks for local dependencies
# RUN: ln -s %swift_src_root/../swift-* %t/src
# RUN: ln -s %swift_src_root/../llbuild %t/src
# RUN: ln -s %swift_src_root/../yams %t/src
# Run the xcodegen test suite
# RUN: xcrun swift-test --package-path %t/src/swift/utils/swift-xcodegen
# Then check to see that xcodegen can generate a project successfully
# RUN: xcrun swift-run --package-path %t/src/swift/utils/swift-xcodegen swift-xcodegen --project-root-dir %swift_src_root/.. --output-dir %t/out %swift_obj_root/..
# RUN: ls %t/out/Swift.xcodeproj > /dev/null