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

Brian Gesiak modocache at gmail.com
Wed Jan 27 11:23:30 CST 2016


Thanks, Young!

It sounds like you may be experiencing the same issue reported in this
thread: https://lists.swift.org/pipermail/swift-dev/Week-of-Mon-20160125/000936.html

Could you reply to that thread to answer Mish Awadah's question? It
appears this problem does not reproduce in Apple's continuous
integration stack.

- Brian Gesiak


On Wed, Jan 27, 2016 at 9:32 AM, yong chen via swift-users
<swift-users at swift.org> wrote:
> 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
>
> _______________________________________________
> swift-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users
>


More information about the swift-users mailing list