Last active
May 7, 2017 23:56
-
-
Save norio-nomura/df19a9aedfd2926a086b3cbec53ecf1d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ 8:50:54 git:(master) docker run --privileged -it --rm swift-base:16.04 | |
root@1c1012e25424:/# which swift | |
root@1c1012e25424:/# mkdir -p /opt/swift/swift-3.1.1-with-sourcekit | |
root@1c1012e25424:/# cd /opt/swift/swift-3.1.1-with-sourcekit | |
root@1c1012e25424:/opt/swift/swift-3.1.1-with-sourcekit# curl -L https://github.com/norio-nomura/docker-sourcekit-builder/releases/download/311/swift-3.1.1-RELEASE-3f82132-with-sourcekit.tar.gz|tar zxf - | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 625 0 625 0 0 692 0 --:--:-- --:--:-- --:--:-- 692 | |
100 352M 100 352M 0 0 2084k 0 0:02:53 0:02:53 --:--:-- 2251k | |
root@1c1012e25424:/opt/swift/swift-3.1.1-with-sourcekit# export PATH=$PATH:/opt/swift/swift-3.1.1-with-sourcekit/usr/bin/ | |
root@1c1012e25424:/opt/swift/swift-3.1.1-with-sourcekit# export LINUX_SOURCEKIT_LIB_PATH=/opt/swift/swift-3.1.1-with-sourcekit/usr/lib | |
root@1c1012e25424:/opt/swift/swift-3.1.1-with-sourcekit# cd | |
root@1c1012e25424:~# which swift | |
/opt/swift/swift-3.1.1-with-sourcekit/usr/bin//swift | |
root@1c1012e25424:~# git clone https://github.com/jpsim/SourceKitten.git | |
Cloning into 'SourceKitten'... | |
remote: Counting objects: 7643, done. | |
remote: Compressing objects: 100% (16/16), done. | |
remote: Total 7643 (delta 3), reused 0 (delta 0), pack-reused 7627 | |
Receiving objects: 100% (7643/7643), 5.96 MiB | 901.00 KiB/s, done. | |
Resolving deltas: 100% (4884/4884), done. | |
Checking connectivity... done. | |
root@1c1012e25424:~# cd SourceKitten/ | |
root@1c1012e25424:~/SourceKitten# swift test | |
Fetching https://github.com/Carthage/Commandant.git | |
Fetching https://github.com/drmohundro/SWXMLHash.git | |
Fetching https://github.com/jpsim/Yams.git | |
Fetching https://github.com/norio-nomura/Clang_C.git | |
Fetching https://github.com/norio-nomura/SourceKit.git | |
Fetching https://github.com/antitypical/Result.git | |
Cloning https://github.com/antitypical/Result.git | |
Resolving https://github.com/antitypical/Result.git at 3.2.1 | |
Cloning https://github.com/Carthage/Commandant.git | |
Resolving https://github.com/Carthage/Commandant.git at 0.12.0 | |
Cloning https://github.com/jpsim/Yams.git | |
Resolving https://github.com/jpsim/Yams.git at 0.3.2 | |
Cloning https://github.com/norio-nomura/Clang_C.git | |
Resolving https://github.com/norio-nomura/Clang_C.git at 1.0.2 | |
Cloning https://github.com/drmohundro/SWXMLHash.git | |
Resolving https://github.com/drmohundro/SWXMLHash.git at 3.0.4 | |
Cloning https://github.com/norio-nomura/SourceKit.git | |
Resolving https://github.com/norio-nomura/SourceKit.git at 1.0.1 | |
Compile CYaml src/dumper.c | |
Compile CYaml src/parser.c | |
Compile CYaml src/reader.c | |
Compile CYaml src/api.c | |
Compile CYaml src/scanner.c | |
Compile CYaml src/writer.c | |
Compile CYaml src/loader.c | |
Compile CYaml src/emitter.c | |
Compile Swift Module 'SWXMLHash' (2 sources) | |
Compile Swift Module 'Result' (2 sources) | |
Linking CYaml | |
Compile Swift Module 'Yams' (13 sources) | |
Compile Swift Module 'Commandant' (10 sources) | |
Compile Swift Module 'SourceKittenFramework' (33 sources) | |
Compile Swift Module 'SourceKittenFrameworkTests' (11 sources) | |
Compile Swift Module 'sourcekitten' (10 sources) | |
Linking ./.build/debug/SourceKittenPackageTests.xctest | |
Linking ./.build/debug/sourcekitten | |
Test Suite 'All tests' started at 23:56:19.525 | |
Test Suite 'debug.xctest' started at 23:56:19.548 | |
Test Suite 'CodeCompletionTests' started at 23:56:19.548 | |
Test Case 'CodeCompletionTests.testSimpleCodeCompletion' started at 23:56:19.548 | |
<unknown>:0: error: compiler is in code completion mode (benign diagnostic) | |
Test Case 'CodeCompletionTests.testSimpleCodeCompletion' passed (0.341 seconds) | |
Test Suite 'CodeCompletionTests' passed at 23:56:19.889 | |
Executed 1 test, with 0 failures (0 unexpected) in 0.341 (0.341) seconds | |
Test Suite 'DocInfoTests' started at 23:56:19.889 | |
Test Case 'DocInfoTests.testDocInfoRequest' started at 23:56:19.889 | |
Test Case 'DocInfoTests.testDocInfoRequest' passed (0.042 seconds) | |
Test Case 'DocInfoTests.testModuleInfoRequest' started at 23:56:19.931 | |
Test Case 'DocInfoTests.testModuleInfoRequest' passed (0.046 seconds) | |
Test Suite 'DocInfoTests' passed at 23:56:19.977 | |
Executed 2 tests, with 0 failures (0 unexpected) in 0.087 (0.087) seconds | |
Test Suite 'FileTests' started at 23:56:19.977 | |
Test Case 'FileTests.testUnreadablePath' started at 23:56:19.977 | |
Could not read contents of `/dev/wtf` | |
Test Case 'FileTests.testUnreadablePath' passed (0.0 seconds) | |
Test Case 'FileTests.testFormat' started at 23:56:19.977 | |
Test Case 'FileTests.testFormat' passed (0.385 seconds) | |
Test Suite 'FileTests' passed at 23:56:20.362 | |
Executed 2 tests, with 0 failures (0 unexpected) in 0.385 (0.385) seconds | |
Test Suite 'ModuleTests' started at 23:56:20.362 | |
Test Case 'ModuleTests.testCommandantDocsSPM' started at 23:56:20.362 | |
FIXME: Skip testCommandantDocsSPM(), because our sourcekitInProc on Swift 3.1 for Linux seems to be broken | |
Test Case 'ModuleTests.testCommandantDocsSPM' passed (0.0 seconds) | |
Test Suite 'ModuleTests' passed at 23:56:20.362 | |
Executed 1 test, with 0 failures (0 unexpected) in 0.0 (0.0) seconds | |
Test Suite 'OffsetMapTests' started at 23:56:20.362 | |
Test Case 'OffsetMapTests.testOffsetMapContainsDeclarationOffsetWithDocCommentButNotAlreadyDocumented' started at 23:56:20.362 | |
Test Case 'OffsetMapTests.testOffsetMapContainsDeclarationOffsetWithDocCommentButNotAlreadyDocumented' passed (0.007 seconds) | |
Test Case 'OffsetMapTests.testOffsetMapDoesntContainAlreadyDocumentedDeclarationOffset' started at 23:56:20.369 | |
Test Case 'OffsetMapTests.testOffsetMapDoesntContainAlreadyDocumentedDeclarationOffset' passed (0.002 seconds) | |
Test Suite 'OffsetMapTests' passed at 23:56:20.371 | |
Executed 2 tests, with 0 failures (0 unexpected) in 0.009 (0.009) seconds | |
Test Suite 'SourceKitTests' started at 23:56:20.371 | |
Test Case 'SourceKitTests.testStatementKinds' started at 23:56:20.371 | |
Test Case 'SourceKitTests.testStatementKinds' passed (2.49 seconds) | |
Test Case 'SourceKitTests.testSyntaxKinds' started at 23:56:22.861 | |
Test Case 'SourceKitTests.testSyntaxKinds' passed (0.947 seconds) | |
Test Case 'SourceKitTests.testSwiftDeclarationKind' started at 23:56:23.808 | |
Test Case 'SourceKitTests.testSwiftDeclarationKind' passed (1.141 seconds) | |
Test Case 'SourceKitTests.testIndex' started at 23:56:24.949 | |
Test Case 'SourceKitTests.testIndex' passed (0.501 seconds) | |
Test Case 'SourceKitTests.testYamlRequest' started at 23:56:25.450 | |
Test Case 'SourceKitTests.testYamlRequest' passed (0.005 seconds) | |
Test Suite 'SourceKitTests' passed at 23:56:25.455 | |
Executed 5 tests, with 0 failures (0 unexpected) in 5.083 (5.083) seconds | |
Test Suite 'StringTests' started at 23:56:25.455 | |
Test Case 'StringTests.testStringByRemovingCommonLeadingWhitespaceFromLines' started at 23:56:25.455 | |
Test Case 'StringTests.testStringByRemovingCommonLeadingWhitespaceFromLines' passed (0.0 seconds) | |
Test Case 'StringTests.testStringByTrimmingTrailingCharactersInSet' started at 23:56:25.455 | |
Test Case 'StringTests.testStringByTrimmingTrailingCharactersInSet' passed (0.0 seconds) | |
Test Case 'StringTests.testCommentBody' started at 23:56:25.455 | |
Test Case 'StringTests.testCommentBody' passed (0.001 seconds) | |
Test Case 'StringTests.testIsSwiftFile' started at 23:56:25.456 | |
Test Case 'StringTests.testIsSwiftFile' passed (0.0 seconds) | |
Test Case 'StringTests.testIsObjectiveCHeaderFile' started at 23:56:25.456 | |
Test Case 'StringTests.testIsObjectiveCHeaderFile' passed (0.0 seconds) | |
Test Case 'StringTests.testAbsolutePath' started at 23:56:25.456 | |
Test Case 'StringTests.testAbsolutePath' passed (0.009 seconds) | |
Test Case 'StringTests.testIsTokenDocumentable' started at 23:56:25.466 | |
Test Case 'StringTests.testIsTokenDocumentable' passed (0.002 seconds) | |
Test Case 'StringTests.testParseDeclaration' started at 23:56:25.468 | |
Test Case 'StringTests.testParseDeclaration' passed (0.0 seconds) | |
Test Case 'StringTests.testGenerateDocumentedTokenOffsets' started at 23:56:25.469 | |
Test Case 'StringTests.testGenerateDocumentedTokenOffsets' passed (0.002 seconds) | |
Test Case 'StringTests.testDocumentedTokenOffsetsWithSubscript' started at 23:56:25.471 | |
Test Case 'StringTests.testDocumentedTokenOffsetsWithSubscript' passed (0.005 seconds) | |
Test Case 'StringTests.testGenerateDocumentedTokenOffsetsEmpty' started at 23:56:25.475 | |
Test Case 'StringTests.testGenerateDocumentedTokenOffsetsEmpty' passed (0.001 seconds) | |
Test Case 'StringTests.testSubstringWithByteRange' started at 23:56:25.477 | |
Test Case 'StringTests.testSubstringWithByteRange' passed (0.0 seconds) | |
Test Case 'StringTests.testSubstringLinesWithByteRange' started at 23:56:25.477 | |
Test Case 'StringTests.testSubstringLinesWithByteRange' passed (0.0 seconds) | |
Test Case 'StringTests.testLineRangeWithByteRange' started at 23:56:25.477 | |
Test Case 'StringTests.testLineRangeWithByteRange' passed (0.0 seconds) | |
Test Suite 'StringTests' passed at 23:56:25.477 | |
Executed 14 tests, with 0 failures (0 unexpected) in 0.022 (0.022) seconds | |
Test Suite 'StructureTests' started at 23:56:25.477 | |
Test Case 'StructureTests.testPrintEmptyStructure' started at 23:56:25.477 | |
Test Case 'StructureTests.testPrintEmptyStructure' passed (0.001 seconds) | |
Test Case 'StructureTests.testGenerateSameStructureFileAndContents' started at 23:56:25.478 | |
Test Case 'StructureTests.testGenerateSameStructureFileAndContents' passed (0.086 seconds) | |
Test Case 'StructureTests.testEnum' started at 23:56:25.564 | |
Test Case 'StructureTests.testEnum' passed (0.003 seconds) | |
Test Case 'StructureTests.testStructurePrintValidJSON' started at 23:56:25.567 | |
Test Case 'StructureTests.testStructurePrintValidJSON' passed (0.003 seconds) | |
Test Suite 'StructureTests' passed at 23:56:25.570 | |
Executed 4 tests, with 0 failures (0 unexpected) in 0.092 (0.092) seconds | |
Test Suite 'SwiftDocsTests' started at 23:56:25.570 | |
Test Case 'SwiftDocsTests.testSubscript' started at 23:56:25.570 | |
FIXME: Skip testSubscript(), because our sourcekitInProc on Swift 3.1 for Linux seems to be broken | |
Test Case 'SwiftDocsTests.testSubscript' passed (0.0 seconds) | |
Test Case 'SwiftDocsTests.testBicycle' started at 23:56:25.570 | |
FIXME: Skip testBicycle(), because our sourcekitInProc on Swift 3.1 for Linux seems to be broken | |
Test Case 'SwiftDocsTests.testBicycle' passed (0.0 seconds) | |
Test Suite 'SwiftDocsTests' passed at 23:56:25.570 | |
Executed 2 tests, with 0 failures (0 unexpected) in 0.0 (0.0) seconds | |
Test Suite 'SyntaxTests' started at 23:56:25.570 | |
Test Case 'SyntaxTests.testPrintEmptySyntax' started at 23:56:25.570 | |
Test Case 'SyntaxTests.testPrintEmptySyntax' passed (0.001 seconds) | |
Test Case 'SyntaxTests.testGenerateSameSyntaxMapFileAndContents' started at 23:56:25.571 | |
Test Case 'SyntaxTests.testGenerateSameSyntaxMapFileAndContents' passed (0.054 seconds) | |
Test Case 'SyntaxTests.testSubscript' started at 23:56:25.625 | |
Test Case 'SyntaxTests.testSubscript' passed (0.002 seconds) | |
Test Case 'SyntaxTests.testSyntaxMapPrintValidJSON' started at 23:56:25.627 | |
Test Case 'SyntaxTests.testSyntaxMapPrintValidJSON' passed (0.001 seconds) | |
Test Suite 'SyntaxTests' passed at 23:56:25.628 | |
Executed 4 tests, with 0 failures (0 unexpected) in 0.058 (0.058) seconds | |
Test Suite 'debug.xctest' passed at 23:56:25.628 | |
Executed 37 tests, with 0 failures (0 unexpected) in 6.077 (6.077) seconds | |
Test Suite 'All tests' passed at 23:56:25.628 | |
Executed 37 tests, with 0 failures (0 unexpected) in 6.077 (6.077) seconds | |
root@1c1012e25424:~/SourceKitten# ldd /opt/swift/swift-3.1.1-with-sourcekit/usr/lib/libsourcekitdInProc.so | |
linux-vdso.so.1 => (0x00007ffc2a1db000) | |
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007efd69482000) | |
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007efd6927e000) | |
libBlocksRuntime.so.0 => /usr/lib/x86_64-linux-gnu/libBlocksRuntime.so.0 (0x00007efd6907a000) | |
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007efd68e72000) | |
libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007efd68c49000) | |
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007efd6893f000) | |
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007efd6873a000) | |
libdispatch.so => /opt/swift/swift-3.1.1-with-sourcekit/usr/lib/../lib/swift/linux/libdispatch.so (0x00007efd68696000) | |
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007efd68313000) | |
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007efd680fd000) | |
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007efd67d34000) | |
/lib64/ld-linux-x86-64.so.2 (0x00005573472bf000) | |
libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007efd67b1e000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment