masters3d
(Chéyo Jiménez)
1
Hello,
I am having trouble figuring out how to run the xctests from the Swift Package Manager Package itself.
Some of the tests succeed but the majority fail. Thanks!
STEPS:
Cloned SPM from github
Downloaded latest Swift Tool chain
Generated Xcode project file (Xcode 8.2)
On each target I added a global flag:
SWIFT_EXEC=/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-12-13-a.xctoolchain/usr/bin/swift
Run Tests for SwiftPM.
177 Tests fail.
Sample error:
../swift-package-manager/Tests/FunctionalTests/ClangModuleTests.swift: test failure:
-[ClangModulesTestCase testCUsingCDep()] failed: failed - `swift build -c Debug' failed:
Hi,
First of all make sure you have latest trunk snapshot from swift.org and
are using it:
$ export TOOLCHAINS=swift
$ xcrun --find swift
/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-12-15-a.xctoolchain/usr/bin/swift
This will build and test swiftpm on command line:
$ Utilities/bootstrap test
If you prefer Xcode:
$ Utilities/bootstrap --generate-xcodeproj
$ open SwiftPM.xcodeproj
$ cmd + u
···
On Fri, Dec 16, 2016 at 6:19 AM, Jose Cheyo Jimenez via swift-build-dev < swift-build-dev@swift.org> wrote:
Hello,
I am having trouble figuring out how to run the xctests from the Swift
Package Manager Package itself.
Some of the tests succeed but the majority fail. Thanks!
STEPS:
Cloned SPM from github
Downloaded latest Swift Tool chain
Generated Xcode project file (Xcode 8.2)
On each target I added a global flag:
SWIFT_EXEC=/Library/Developer/Toolchains/swift-DEVELOPMENT-
SNAPSHOT-2016-12-13-a.xctoolchain/usr/bin/swift
Run Tests for SwiftPM.
177 Tests fail.
Sample error:
../swift-package-manager/Tests/FunctionalTests/ClangModuleTests.swift:
test failure:
-[ClangModulesTestCase testCUsingCDep()] failed: failed - `swift build -c
Debug' failed:
_______________________________________________
swift-build-dev mailing list
swift-build-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-build-dev
--
Ankit
1 Like