add forgotten Linux tests

This commit is contained in:
Johannes Weiß 2017-09-20 17:43:16 +01:00
parent 007feec636
commit eff809b88d
4 changed files with 18 additions and 11 deletions

View File

@ -23,24 +23,24 @@ import XCTest
///
#if os(Linux) || os(FreeBSD)
@testable import NIOHTTP1Tests
@testable import NIOTests
@testable import NIOHTTP1Tests
XCTMain([
testCase(HTTPHeadersTest.allTests),
testCase(HTTPTest.allTests),
testCase(CircularBufferTests.allTests),
testCase(TypeAssistedChannelHandlerTest.allTests),
testCase(ByteBufferTest.allTests),
testCase(ChannelPipelineTest.allTests),
testCase(CircularBufferTests.allTests),
testCase(AdaptiveRecvByteBufferAllocatorTest.allTests),
testCase(EchoServerClientTest.allTests),
testCase(ByteToMessageDecoderTest.allTests),
testCase(MessageToByteEncoderTest.allTests),
testCase(EchoServerClientTest.allTests),
testCase(EmbeddedChannelTest.allTests),
testCase(EventLoopTest.allTests),
testCase(FileRegionTest.allTests),
testCase(FutureTest.allTests),
testCase(AdaptiveRecvByteBufferAllocatorTest.allTests),
testCase(ByteBufferTest.allTests),
testCase(EmbeddedChannelTest.allTests),
testCase(ChannelPipelineTest.allTests),
testCase(SocketAddressTest.allTests),
testCase(FutureTest.allTests),
testCase(EventLoopTest.allTests),
testCase(HTTPHeadersTest.allTests),
testCase(HTTPTest.allTests),
])
#endif

View File

@ -27,6 +27,9 @@ extension EchoServerClientTest {
static var allTests : [(String, (EchoServerClientTest) -> () throws -> Void)] {
return [
("testEcho", testEcho),
("testChannelActiveOnConnect", testChannelActiveOnConnect),
("testWriteThenRead", testWriteThenRead),
("testCloseInInactive", testCloseInInactive),
]
}
}

View File

@ -27,6 +27,7 @@ extension EventLoopTest {
static var allTests : [(String, (EventLoopTest) -> () throws -> Void)] {
return [
("testSchedule", testSchedule),
("testScheduleCancelled", testScheduleCancelled),
]
}
}

View File

@ -28,6 +28,9 @@ extension FutureTest {
return [
("testFutureFulfilledIfHasResult", testFutureFulfilledIfHasResult),
("testFutureFulfilledIfHasError", testFutureFulfilledIfHasError),
("testAndAllWithAllSuccesses", testAndAllWithAllSuccesses),
("testAndAllWithAllFailures", testAndAllWithAllFailures),
("testAndAllWithOneFailure", testAndAllWithOneFailure),
]
}
}