[swift-users] Tests of Swift package manager failed to compile on Ubuntu 14.04

yong chen chainone at gmail.com
Wed Jan 27 08:32:50 CST 2016


Following are the command I ran and the compile error returned
Swift package manager itself could be built on Ubuntu 14.04.
Am I doing anything wrong here? Any help is appreciated, thanks.



./Utilities/bootstrap --swiftc /path/to/swift-snapshot/usr/bin/swiftc
 --sbt /path/to/swift-snapshot/usr/bin/swift-build-tool --build-tests test
bootstrap: note: building stage1:
/path/to/swift-snapshot/usr/bin/swift-build-tool -f
/path/to/swift-package-manager/.build/.bootstrap/build.swift-build
Compiling Swift Module 'Functional_tests' (6 sources)
Compiling Swift Module 'dep_tests' (10 sources)
Compiling Swift Module 'sys_tests' (8 sources)
/path/to/swift-package-manager/swift-package-manager/Sources/../Tests/sys/FileTests.swift:15:7:
error: type 'FileTests' does not conform to protocol 'XCTestCaseProvider'
class FileTests: XCTestCase,  XCTestCaseProvider {
      ^
XCTest.XCTestCaseProvider:2:16: note: protocol requires property 'allTests'
with type '[(String, () -> Void)]'
    public var allTests: [(String, () -> Void)] { get }
               ^
/path/to/swift-package-manager/swift-package-manager/Sources/../Tests/sys/FileTests.swift:17:9:
note: candidate has non-matching type '[(String, () throws -> Void)]'
    var allTests : [(String, () throws -> Void)] {
        ^
Compiling Swift Module 'PackageDescription_tests' (2 sources)
/path/to/swift-package-manager/swift-package-manager/Sources/../Tests/Functional/TestDependencyResolution.swift:5:7:
error: type 'DependencyResolutionTestCase' does not conform to protocol
'XCTestCaseProvider'
class DependencyResolutionTestCase: XCTestCase, XCTestCaseProvider {



Regards,
Young
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160127/776701af/attachment.html>


More information about the swift-users mailing list