[swift-dev] [SR-710][RFC] Automatically detecting XCTest test methods on Linux: Reflection? SourceKit?

Luke Howard lukeh at padl.com
Mon May 9 22:50:37 CDT 2016


Or maybe not, looks like there’s a Unix transport in transports/unix.c.

> On 10 May 2016, at 1:48 PM, Luke Howard via swift-dev <swift-dev at swift.org> wrote:
> 
> There is libxpc from NextBSD:
> 
> https://github.com/NextBSD/libxpc <https://github.com/NextBSD/libxpc>
> 
> You’d still need to implement Mach IPC on top of something though.
> 
> — Luke
> 
>> On 10 May 2016, at 12:35 PM, Brian Gesiak via swift-dev <swift-dev at swift.org <mailto:swift-dev at swift.org>> wrote:
>> 
>> Thanks for the feedback, everyone!
>> 
>> Porting SourceKit to Linux seems like a reasonable solution to me. Still, there are 354 lines of code in tools/SourceKit that reference "XPC", so a Linux port will take more than a few lines of source code changes.
>> 
>> I imagine we'll need to insert some sort of shim layer that will use libxpc on OS X, and a hand-rolled solution for Linux. Alternatively, if anyone knows of a good open-source library that implements IPC for Linux (and that has a permissible license), that would be a great help here.
>> 
>> I've also seen the idea proposed that Apple could open-source libxpc, which we could then port to Linux. This would involve less work than installing a shim layer in SourceKit, then in addition implementing a Linux IPC library behind the shim. I don't know who I could talk about making this happen, but in any case, I filed a Radar:
>> 
>> * rdar://26187442 <rdar://26187442>
>> * https://openradar.appspot.com/26187442 <https://openradar.appspot.com/26187442>
>> > 2. Somehwat unrelated, but the compiler itself (`swiftc`) is not yet written in a way that it can be used from SourceKit.
>> 
>> Could you explain this further?
>> 
>> - Brian Gesiak
> 
> _______________________________________________
> swift-dev mailing list
> swift-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-dev

--
www.lukehoward.com
soundcloud.com/lukehoward

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20160510/52340c03/attachment.html>


More information about the swift-dev mailing list