Commit Graph

46 Commits

Author SHA1 Message Date
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
Kare Morstol d054f4ea12 New speed test baselines. 2014-09-04 18:29:01 +02:00
Kare Morstol 96ab5a2070 Enable "func run (shellcommand: String) -> ReadableStreamType" to also be run by itself on a single line.
A thorough explanation is forthcoming.
2014-09-02 15:23:22 +02:00
Kare Morstol c3ae075c5c Renamed File tests to FileHandle* too. 2014-08-29 02:42:20 +02:00
Kare Morstol a647c41319 Renamed File to FileHandle. 2014-08-29 01:55:08 +02:00
Kare Morstol d2d2f67bfa Added playground. Excellent for rapidly testing stuff. 2014-08-28 20:35:02 +02:00
Kare Morstol cf31b577bb Running "xcodebuild install" installs the framework to ~/Library/Frameworks, and doing a clean build no longer removes it. 2014-08-28 00:24:02 +02:00
Kare Morstol 55c96103ac Added scripts folder for testing entire scripts.
Added one test script and a unit test file for running them.
Disabled deployment of framework on release build because it gets removed again as soon as I do a clean build.
2014-08-25 22:09:24 +02:00
Kare Morstol e63494b68b Added new test file for Stream_Iteration_SpeedTests. Cleaned up. 2014-08-22 21:56:24 +02:00
Kare Morstol 8c6f0a7171 Moved stream factory functions from unit test to stream.swift.
A new stream factory function which takes a closure which returns a closure which returns a string.
2014-08-21 23:38:50 +02:00
Kare Morstol 07fbd7df80 The release build now installs the framework to ~/Library/Frameworks/.
But it is deleted the next time you do a clean build. Y
2014-08-21 00:08:36 +02:00
Kare Morstol 7d60ec13ca Fixed info at the top of each file. Renamed String_Tests to String_Partition_Tests 2014-08-20 01:12:22 +02:00
Kare Morstol b92999eb44 Added the actual code, thereby improving the project's usefulness considerably. 2014-08-20 00:15:20 +02:00
Kare Morstol cbee21cd98 Initial commit of empty project 2014-08-19 23:44:45 +02:00