63 Commits

Author SHA1 Message Date
Kare Morstol 9ae82dc6db Move AsyncCommand.launch back to RunOutput(launch:).
Since AsyncCommand.launch was private and only used by RunOutput.
2018-10-03 17:52:36 +02:00
Kare Morstol 97e68ec5bb Remove swiftlint build phase.
Was inactive anyway.
2018-07-31 17:51:30 +02:00
Kare Morstol eedbd2ab73 Move all Process-specific code to its own file. 2018-04-06 21:41:45 +02:00
Kare Morstol edfad8d0b7 Xcode 9.3: update to recommended project settings. 2018-04-05 21:03:11 +02:00
Kare Morstol 66fb0be630 Try with 4.0-DEVELOPMENT-SNAPSHOT-2017-06-19-a instead. 2017-06-23 20:29:37 +02:00
Kare Morstol eb9ded045b Update to Swift 4. 2017-06-23 20:15:44 +02:00
Kare Morstol ae127df8c5 Remove Scripts directory reference in XCode. 2017-05-11 21:41:58 +02:00
Kare Morstol fdf348859c Remove space before ( in function declarations.
I used to think it looked better for some reason.
2017-04-20 20:32:29 +02:00
Kare Morstol e7e43b42ba Cleanup code.
With the help of SwiftLint.
2017-04-18 19:05:36 +02:00
Kare Morstol 38f3d41ca7 Also rename in LinuxMain.swift. 2017-03-31 00:08:56 +02:00
Kare Morstol 4d2ed74b55 Massive renaming: avoid words Type, Task and Shell.
Protocols should no longer end in Type, Task has been renamed in Foundation and the word Shell is not appropriate for running commands / launching processes, it describes terminal applications and shell interpreters like bash. Which means the name SwiftShell itself is probably a misnomer but I am not about to change that now.

Also remove any mentions of SwiftShell 2.
2017-03-30 20:10:05 +02:00
Kare Morstol 03adb38f56 Update to Xcode 8.3.
Can't update .swift-version to 3.1 yet because of Travis and swiftenv.
2017-03-29 19:11:11 +02:00
Kare Morstol af7399e93a Fix up ReadableStream.onStringOutput, set framework as dependency for all unit test targets. 2017-03-02 19:15:49 +01:00
Kare Morstol d944464578 Update podspec with iOS deployment target 9.0. 2017-03-01 21:58:37 +01:00
Kare Morstol fa70e419dd Enable building for iOS. Just the Stream part. So FileSmith can use it.
The rest cannot build on iOS because it uses Process.
Move the Stream files into its own directory.
2017-02-28 01:45:24 +01:00
Kare Morstol 11b979c690 Fix AssertNoThrow silencing test failures. Cleanup test helping code. 2017-01-30 20:27:12 +01:00
Kare Morstol e53557624c Update to recommended settings in Xcode 8.2. 2016-12-16 20:13:43 +01:00
Kare Morstol e7af9e3449 Remove Linux from supported platforms.
Linux isn't quite supported yet.

Also Cartage gives error
	Parse error: unexpected SDK key "linux"
2016-10-09 23:30:39 +02:00
Kare Morstol ed36e0228f Add ‘Tests’ suffix to test folders. As required by Swift Package Manager. 2016-10-07 22:11:37 +02:00
Kare Morstol 867efc06df Set minimum deployment target to 10.9 – see #23.
"
Running 10.12. Framework installed in ~/Library/Frameworks/. Whenever I run a swift script importing SwiftShell, I get the following error:

./swifttest:4:8: error: module file's minimum deployment target is OS X v10.11: /Users/xxxxx/Library/Frameworks/SwiftShell.framework/Modules/SwiftShell.swiftmodule/x86_64.swiftmodule
"
2016-09-23 22:27:27 +02:00
Kare Morstol 27a7cde34a Update to Swift 3.0 final release.
3 unit tests are failing. Not sure why.
2016-09-15 13:10:30 +02:00
Kare Morstol b65bc584d5 Update for Xcode 8 beta 3. 2016-07-26 12:19:04 +02:00
Kare Morstol 0e14578942 Update to DEVELOPMENT-SNAPSHOT-2016-06-20-a.
Lots of name and value changes in Foundation.
Currently does not build using the Swift Package Manager ("<unknown>:0: error: Swift does not support the SDK 'MacOSX10.11.sdk'"), but builds fine from Xcode 8.
2016-06-22 00:01:27 +02:00
Kare Morstol 3bffc67f63 Move String.swift out of “General”, as it isn't. General that is. 2016-06-07 22:18:52 +02:00
Kare Morstol 04759e9245 Reorganise to use "swift test". Replace Xcode project with one auto-generated by swiftpm.
The “Scripts” folder is temporarily moved out of "Tests" because it doesn't work with the Swift Package Manager.
2016-06-06 01:48:36 +02:00
Kare Morstol 2d368bf7d6 Remove old Xcode project and unused files. 2015-09-08 18:04:37 +02:00
Kare Morstol ed2b96f8d5 Remove non-working playground. Update project format to 6.3. 2015-07-19 21:59:50 +02:00
Kare Morstol 0b5680c9ab Simplify speedtests.
Pretty sure this used to not work. Why else would this not already be here?
2015-07-09 20:38:41 +02:00
Kare Morstol 0e369c5b48 Update to Xcode 7 beta 3. 2015-07-09 20:37:25 +02:00
Kare Morstol 068473a2fb Enable tests that now pass in Swift 2.0 .
Nice.
2015-06-28 00:54:09 +02:00
Kare Morstol a9dbdcf629 Update to Swift 2.0 .
Wow, lots of changes in Swift 2.0! And all of them great, except for renaming println to print. What's up with that?
This is just to get it to compile, we will be trying and throwing errors in no time.
2015-06-28 00:52:40 +02:00
Kare Morstol 6c22fb9e14 Disable unit tests with runtime crashes in Swift 1.2
So we can run the rest of the unit tests.
2015-02-13 23:18:40 +01:00
Kare Morstol cc1d152f14 Rename /Div folder to Misc.
Well this is awkward. It seems a Norwegian term has snuck its way into the project. I meant Misc for Miscellaneous.
2015-01-05 19:40:27 +01:00
Kare Morstol 7ffcf7be5f Skip speed test "testSpeedSwiftSplit" as it takes a very long time.
Also improve output of "testWhenSplitFileAsStringBecomesQuicker".
2014-12-18 01:49:46 +01:00
Kare Morstol 11a028d4ff Fix #2: "ReadableStreamType.readSome crashes with error "6555 Illegal instruction: 4" when using a Release build of SwiftShell."
Also fixes #1: "SwiftShell_Speed_Tests unit tests never finish.".
It turns out NSString(data data: NSData, encoding encoding: UInt) returns an optional String, something Xcode/Swift neglected to tell me. Which is strange as they are normally very strict about these things. But what really solved these 2 issues (which are really the same issue) was removing the unnecessary cast "as String". For more on this really bizarre bug in the Swift compiler, see https://devforums.apple.com/message/1084852#1084852 .
2014-12-18 01:47:33 +01:00
Kare Morstol caaf5459db Move Files_Tests to its rightful position. 2014-12-01 23:44:39 +01:00
Kare Morstol a2985b049d Add shell unit tests and update test scripts.
Run SwiftShellTests/Scripts/runtests.bash to perform all unit tests.
2014-11-26 20:58:22 +01:00
Kare Morstol b33bfb9a5f Move "temporaryDirectory" to new file Files.swift and rename it "tempdirectory".
Because it could be useful in scripts too.
2014-11-25 20:38:32 +01:00
Kare Morstol e67f465457 Add "countOccurrencesOf" to String. 2014-11-05 17:40:13 +01:00
Kare Morstol 7c0048820a Enable build for running again, so SwiftShell will work in a playground. 2014-10-24 20:21:55 +02:00
Kare Morstol 0edc3d30dd Deactivate unnecessary builds. 2014-10-23 19:11:56 +02:00
Kare Morstol 838b5ee617 Make “Debug” the default command line configuration.
The Swift compiler (Xcode 6.1) crashes when reading from streams when SwiftShell is built with optimisations turned on (anything but "SWIFT_OPTIMIZATION_LEVEL = -Onone").
2014-10-22 22:12:28 +02:00
Kare Morstol f0d4c34f9b Add versions of global Swift functions that can be used with the |> operator.
-   Moved overloads of |> operator for WriteableStreamType to Stream.swift.

Note: it takes forever to compile if you put too many |> operators in a row.
2014-09-17 23:39:21 +02:00
Kare Morstol 1aa06b20f5 Make debug build installable.
Have to use debug builds instead of release in Xcode 6.1 beta 2. See issue #2.
2014-09-17 16:36:31 +02:00
Kare Morstol 7ef52b67bf Move XCTestCase.pathForTestResource to a file common for all unit test targets. 2014-09-15 22:17:06 +02:00
Kare Morstol 36e217c0c3 Make piping one stream to another lazy. 2014-09-12 01:12:50 +02:00
Kare Morstol 1d6788c08e Add readme to scripts folder. Move test area.playground. 2014-09-11 21:39:35 +02:00
Kare Morstol 87659e8e15 Check if constant can be placed outside method now. It can't.
Also updated speed tests. They are almost 50% faster than beta 7!
2014-09-10 20:28:08 +02:00
Kare Morstol 0b38585a1e Add testReadFileLineByLine, readfilelinebyline.Swift test script and a short text file for testing. 2014-09-09 18:57:39 +02:00
Kare Morstol fad80f1b0e renamed swiftshell.bash to swiftshell and moved it to Div folder. 2014-09-04 19:49:12 +02:00