Skip to content

Commit 2eff162

Browse files
committed
[test] Use release mode in swift-xcodegen.test
This takes about twice as long to build in CI, but runs significantly quicker (~22x). The exact time taken varies quite a bit between runs, but this brings the worst-case overall run-time down from ~500s to ~200s. While here, make sure we pass `--skip-build` to the second invocation to ensure we avoid building twice. Also disable using the dependency cache since we want to test a clean build, and we just want swiftpm to use the local deps.
1 parent 1f80e50 commit 2eff162

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

validation-test/BuildSystem/swift-xcodegen.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
# RUN: ln -s %swift_src_root/../yams %t/src
2222

2323
# Run the xcodegen test suite
24-
# RUN: xcrun swift-test --package-path %t/src/swift/utils/swift-xcodegen
24+
# RUN: xcrun swift-test -c release --disable-dependency-cache --package-path %t/src/swift/utils/swift-xcodegen
2525

2626
# Then check to see that xcodegen can generate a project successfully
27-
# 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/..
27+
# RUN: xcrun swift-run -c release --disable-dependency-cache --skip-build --package-path %t/src/swift/utils/swift-xcodegen swift-xcodegen --project-root-dir %swift_src_root/.. --output-dir %t/out %swift_obj_root/..
2828
# RUN: ls %t/out/Swift.xcodeproj > /dev/null

0 commit comments

Comments
 (0)