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
755d1aa563
run() returns RunOutput instead of String. Supports || and &&.
2017-03-29 19:59:26 +02:00
Kare Morstol
5a78671651
Remove completely unintended and compile-breaking word.
2017-03-01 19:28:55 +01:00
Kare Morstol
bcaab22767
Require encoding for FileHandle.readSome and .read. Documentation.
2017-03-01 18:25:58 +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
7204dbdb3a
@discardableResult declared on a function returning Void is unnecessary.
2017-02-21 22:11:54 +01:00
Kare Morstol
62780a880a
String(contentsOfFile:) not implemented on Linux, use String(contentsOfFile: encoding:) instead.
2017-01-31 00:41:29 +01:00
Kare Morstol
43a726bbba
Fix testOpenForOverWritingCreatesIntermediateDirectory.
2017-01-30 20:37:13 +01:00
Kare Morstol
11b979c690
Fix AssertNoThrow silencing test failures. Cleanup test helping code.
2017-01-30 20:27:12 +01:00
Miguel Angel Quinones Garcia
93b2b36d68
Fix intermediate directories not created ( #32 )
...
* Fix intermediate directories not created
If the destination path contains nonexisting directories, the function would fail where otherwise it is expected to create all directories in the path.
* Add test for creation with intermediate directories
2017-01-30 20:13:49 +01:00
Kare Morstol
ce44afe306
Turn WriteableStream and ReadableStream into protocols.
...
* Remove WriteableStream.writeln, use .print instead.
* Work around compiler crash on Linux.
2017-01-09 17:43:53 +01:00
kareman
eea3cd2d61
Simplify WriteableStream.print
2016-11-01 21:46:46 +01:00
kareman
6acfe7f870
Add WriteableStream.print
2016-11-01 21:25:14 +01:00
kareman
221c9892bc
Replace OSX with macOS
2016-11-01 20:37:47 +01:00
kareman
8ce6100286
Add FileHandle.nullDev, cross-platformise some unit test.
2016-10-16 20:51:51 +02:00
kareman
0f0ddfb9ea
Add tests on Linux
2016-10-15 00:06:05 +02:00
kareman
ef98b8da07
Get it to build on Linux. No tests yet.
2016-10-13 19:17:40 +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
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
580cfee1c2
Update for Xcode 8 beta 2.
...
The Foundation Swift API keeps improving.
2016-07-10 18:01: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
fec75eb013
Remove diagnostic printing from unit test.
2016-06-08 00:24:57 +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
191ce614a9
Almost get it to build on Linux.
...
Just waiting for https://github.com/apple/swift-corelibs-foundation/pull/404 to be approved.
2016-06-06 03:19:05 +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
2831504900
Mark “run” commands as having @discardableResult.
...
Also silence some persistent warnings in the tests.
2016-06-03 23:30:52 +02:00
Kare Morstol
e6b707c9de
Avoid warnings about unused results by marking functions "@discardableResult".
2016-06-03 22:26:20 +02:00
Kare Morstol
03fd4a20af
Appease Swift 3s stricter rules about importing Foundation.
2016-05-25 03:32:18 +02:00
Kare Morstol
cb6881efc8
Update external test scripts to Swift 3.0 .
2016-05-13 05:43:02 +02:00
Kare Morstol
56e39270bc
Make external test script not care what the current working directory is.
2016-05-13 05:30:03 +02:00
Kare Morstol
aa80eb7932
Convert unit tests to Swift 3.0.
...
Currently crashes.
2016-05-12 01:59:32 +02:00
Kare Morstol
6f57644422
Update to Swift 3.0
...
Not the unit tests.
2016-05-12 00:37:13 +02:00
Kare Morstol
7b73ae7be0
Test AsyncShellTask.onCompletion .
2016-04-28 02:48:36 +02:00
Kare Morstol
95e0207e70
Rename to onStringOutput and add onOutput. Add tests for both.
2016-04-28 01:40:18 +02:00
Kare Morstol
b5e46b02b9
/Tests/Scripts/README: mention 'make test'.
2016-03-30 14:12:02 +02:00
Kare Morstol
15da28218d
Add AsyncShellTask.exitcode().
2016-02-25 03:56:23 +01:00
Kare Morstol
73babca64f
Make sure the test script finds the SwiftShell launcher script.
2016-02-25 01:48:01 +01:00
Kare Morstol
4916480f4e
Fix #14 : Support building with Swift Package Manager.
...
That was easier than I feared.
2016-02-23 03:17:06 +01:00