Bill Abt
2db2424048
Added test to test issue #139 . It's not failing...
2018-08-13 10:35:17 -04:00
Bill Abt
524266e308
Fix for deprecation of IndexDistance in Swift 4.1.
2018-04-26 14:40:55 -04:00
Bill Abt
1cc8c6b22b
Fixed minor warning due to deprecation on Linux.
2018-04-26 14:20:01 -04:00
Bill Abt
9e9af202f4
Bumped the number of iterations for testFDSetBitFields() function from 128 to 1024, the default number of open descriptors on Linux.
2018-02-23 08:57:43 -05:00
Jim Dovey
ec3b6f5d55
Adds the new unit test to the allTests array.
2018-02-22 14:33:24 -08:00
Jim Dovey
74bbadbc7a
Fixed a bit-addressing error in fd_set implementation.
...
- Now uses an unsigned type to perform the bit-shift operation and then casts to signed type using `init(bitPattern:)`.
- Added a unit test case which ensures fd values from zero to (arbitrarily) 128 can all be inserted and removed from the fd_set.
2018-02-22 12:42:08 -08:00
Bill Abt
a1ad5b02ab
Fixed Swift 4.1 warnings in the test module.
2018-02-21 10:51:13 -05:00
Bill Abt
19471cb158
Improved testIsReadableWritable() function.
2018-01-25 09:02:30 -05:00
Bill Abt
94072699c0
Added new tests to test both failure and successful uses of isReadableOrWritable() function.
2018-01-22 10:33:52 -05:00
Quan Vo
885c9c2a2a
Fix BlueSocket.xcodeproj
2017-09-07 15:57:25 -05:00
Quan Vo
e70aff9e53
Fix array shuffle on Linux Swift 4
2017-08-31 09:22:22 -05:00
Quan Vo
0b335ed341
Linux fixes
2017-08-30 15:04:36 -05:00
Quan Vo
558fdeb7b6
Swift 4 support
2017-08-23 11:36:57 -05:00
Bill Abt
22bbd60a88
Update the testConnectToWithTimeout test. Setting the socket to non-blocking mode is no longer needed.
2017-08-06 10:11:57 -04:00
Bill Abt
14f4ff9979
Added new test to test the variant of connect that uses a timeout value.
2017-08-05 11:05:53 -04:00
Bill Abt
df2e65fcaf
More minor swiftlint warnings.
2017-06-21 20:24:21 -04:00
Bill Abt
7a72e361f8
Changed #if os(OSX) to #if os(macOS). Minor formatting changes.
2017-04-13 10:32:42 -04:00
Quan Vo
d4e6f02024
Revert any changes to existing test classes. Add test class that checks other test classes for Linux vs OSX test count. Move array shuffle extensions inside LinuxMain.swift.
2017-04-12 13:43:18 -05:00
Quan Vo
a2abf87d17
Add Mac vs Linux test count test. Randomize test order on Linux. IBM-Swift/Kitura#1056
2017-04-05 16:37:35 -05:00
Bill Abt
bd740b6363
Added new tests to test the new read and write timeouts.
2017-03-16 11:53:35 -04:00
Bill Abt
0d75429b10
Fix for issue #46 : socket path corrupt.
2017-01-03 13:20:28 -05:00
Bill Abt
990692faff
Fixed tests to conform to function signature change that was made for consistency purposes.
2016-12-09 17:28:10 -05:00
Bill Abt
0087fe96c5
Some final UDP cleanup including removal of the truncate parameter from the readDatagram API. Changed the signature of the Signature initializer to include the protocol family, so that you can create both IPv4 and IPv6 signatures. Added additional comments and documentation to the tests.
2016-12-08 10:45:55 -05:00
Frederick Kellison-Linn
504059d627
Fix merge issue in tests.
2016-12-07 22:26:53 -05:00
Bill Abt
e5d6cff580
Fixed merge conflict.
2016-12-07 20:30:14 -05:00
Frederick Kellison-Linn
9d3e7d4a93
Fix merge conflicts
2016-12-07 17:42:56 -05:00
Frederick Kellison-Linn
8de2652377
Enable testTruncateTCP
2016-12-07 15:00:05 -05:00
Frederick Kellison-Linn
a88f7b560b
Fix issue with Linux tests
2016-12-07 14:57:58 -05:00
Frederick Kellison-Linn
6e617b3e69
Add ability to truncate TCP responses
2016-12-07 14:51:15 -05:00
Frederick Kellison-Linn
9b2212968a
Add option to trucnate UDP messages (default true)
...
Add documentation
Add tests
QUIT UDP server when test finishes
2016-12-07 12:02:20 -05:00
Bill Abt
9adddc5f87
Move the convenience function to create an Address given a host and port to the Socket class level as a utility function and renamed it createAddress. Made the necessary changes to the test suite and turned on ALL UDP tests.
2016-12-06 16:46:16 -05:00
Frederick Kellison-Linn
d2e3e489c6
Add UDP tests
2016-12-06 15:38:48 -05:00
Bill Abt
806384d14b
Added more UDP tests. Still disabled.
2016-12-05 18:55:46 -05:00
Bill Abt
d62e6df702
More UDP infrastructure changes. Added (disabled at this time) initial UDP tests.
2016-12-05 16:04:07 -05:00
Bill Abt
dd5785d7d1
The wait for the serverHelper to come down has to be inside the do/catch.
2016-12-03 01:03:15 -05:00
Bill Abt
b9c14a922f
For tests that use the serverHelper, have to wait for the serverHelper to come up before starting the test and then at the end of the test, wait for it to come down prior to exiting the test.
2016-12-02 18:04:20 -05:00
Bill Abt
8c5adb1ef6
Added UNIX domain socket support. Added additional tests to cover the new support. Added new error code, SOCKET_ERR_CONNECTION_RESET, to indicate that socket read failed due the connection being reset by the peer.
2016-11-29 10:17:47 -05:00
Bill Abt
f12fb3a7a2
Remove in-code disablement of swiftlint warnings, now done in the .swiftlint.yml file at the root of the repo.
2016-10-25 14:45:39 -04:00
Bill Abt
c38f5dd6ac
Disable "questionable" swiftlint items.
2016-10-25 13:30:44 -04:00
Bill Abt
9008d21b09
Fix for issue #22 . When requesting to listen on port 0, the port assigned by the OS was not being returned in the Signature. Hence, the caller would not know what port was assigned and is being listened to. Added two unit tests to test this condition.
2016-10-12 11:36:54 -04:00
Bill Abt
faa4161403
Update to latest (8/26) toolchain.
2016-08-28 18:37:05 -04:00
Bill Abt
7d109ebe6f
Improved a number of tests with better assertions. Fixed a bug with capturing self in the launchServerHelper() function.
2016-08-12 11:23:23 -04:00
Bill Abt
09aebbe819
Old file. Not needed.
2016-08-10 16:18:28 -04:00
Bill Abt
5de94ab365
Old file. Not needed.
2016-08-10 16:17:54 -04:00
Bill Abt
eeee123eb3
More tests added including read/write using built-in test server. Now requires Dispatch for testing but NOT for building.
2016-08-10 16:09:51 -04:00
Bill Abt
fe12f1c753
More tests added.
2016-08-10 14:05:32 -04:00
Bill Abt
1d3df5bc4e
Added 4 new tests and removed one old one that was too general.
2016-08-10 12:02:39 -04:00
Bill Abt
d1d9ea58fa
Update to latest (8/4) toolchain.
2016-08-05 21:05:40 -04:00
Bill Abt
fe800c8a6c
Changes for the latest toolchain.
2016-08-02 09:05:09 -04:00
Bill Abt
ae54ca5519
Added license to SocketTests.swift
2016-07-29 15:21:13 -04:00