Skip to content

Commit

Permalink
Improve Linux test gen script to match current format. (apple#3)
Browse files Browse the repository at this point in the history
Motivation:

Right now the test gen script will rewrite every file. Not ideal!

Modifications:

Added the license header, and made the follow-on comment match that
style.

Result:

Test files will look the same when running this script as they do
now.
  • Loading branch information
Lukasa authored and normanmaurer committed Feb 21, 2018
1 parent c8c8dbf commit 088c09e
Show file tree
Hide file tree
Showing 41 changed files with 137 additions and 124 deletions.
8 changes: 4 additions & 4 deletions Tests/LinuxMain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// LinuxMain.swift
///
//
// LinuxMain.swift
//
import XCTest

///
Expand Down Expand Up @@ -59,13 +59,13 @@ import XCTest
testCase(IdleStateHandlerTest.allTests),
testCase(MarkedCircularBufferTests.allTests),
testCase(MessageToByteEncoderTest.allTests),
testCase(NIOConcurrencyHelpersTests.allTests),
testCase(NonBlockingFileIOTest.allTests),
testCase(PendingDatagramWritesManagerTests.allTests),
testCase(PriorityQueueTest.allTests),
testCase(SniHandlerTest.allTests),
testCase(SocketAddressTest.allTests),
testCase(SocketChannelTest.allTests),
testCase(NIOConcurrencyHelpersTests.allTests),
testCase(SystemTest.allTests),
testCase(ThreadTest.allTests),
testCase(TypeAssistedChannelHandlerTest.allTests),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// NIOConcurrencyHelpersTests+XCTest.swift
///
//
// NIOConcurrencyHelpersTests+XCTest.swift
//
import XCTest

///
Expand Down
6 changes: 3 additions & 3 deletions Tests/NIOHTTP1Tests/HTTPHeadersTest+XCTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// HTTPHeadersTest+XCTest.swift
///
//
// HTTPHeadersTest+XCTest.swift
//
import XCTest

///
Expand Down
6 changes: 3 additions & 3 deletions Tests/NIOHTTP1Tests/HTTPRequestEncoderTest+XCTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// HTTPRequestEncoderTest+XCTest.swift
///
//
// HTTPRequestEncoderTest+XCTest.swift
//
import XCTest

///
Expand Down
6 changes: 3 additions & 3 deletions Tests/NIOHTTP1Tests/HTTPResponseCompressorTest+XCTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// HTTPResponseCompressorTest+XCTest.swift
///
//
// HTTPResponseCompressorTest+XCTest.swift
//
import XCTest

///
Expand Down
6 changes: 3 additions & 3 deletions Tests/NIOHTTP1Tests/HTTPResponseEncoderTest+XCTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// HTTPResponseEncoderTest+XCTest.swift
///
//
// HTTPResponseEncoderTest+XCTest.swift
//
import XCTest

///
Expand Down
6 changes: 3 additions & 3 deletions Tests/NIOHTTP1Tests/HTTPServerClientTest+XCTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// HTTPServerClientTest+XCTest.swift
///
//
// HTTPServerClientTest+XCTest.swift
//
import XCTest

///
Expand Down
6 changes: 3 additions & 3 deletions Tests/NIOHTTP1Tests/HTTPTest+XCTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// HTTPTest+XCTest.swift
///
//
// HTTPTest+XCTest.swift
//
import XCTest

///
Expand Down
6 changes: 3 additions & 3 deletions Tests/NIOHTTP1Tests/HTTPUpgradeTests+XCTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// HTTPUpgradeTests+XCTest.swift
///
//
// HTTPUpgradeTests+XCTest.swift
//
import XCTest

///
Expand Down
6 changes: 3 additions & 3 deletions Tests/NIOPriorityQueueTests/HeapTests+XCTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// HeapTests+XCTest.swift
///
//
// HeapTests+XCTest.swift
//
import XCTest

///
Expand Down
6 changes: 3 additions & 3 deletions Tests/NIOPriorityQueueTests/PriorityQueueTests+XCTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// PriorityQueueTests+XCTest.swift
///
//
// PriorityQueueTests+XCTest.swift
//
import XCTest

///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// ApplicationProtocolNegotiationHandlerTests+XCTest.swift
///
//
// ApplicationProtocolNegotiationHandlerTests+XCTest.swift
//
import XCTest

///
Expand Down
6 changes: 3 additions & 3 deletions Tests/NIOTLSTests/SNIHandlerTests+XCTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// SniHandlerTests+XCTest.swift
///
//
// SNIHandlerTests+XCTest.swift
//
import XCTest

///
Expand Down
6 changes: 3 additions & 3 deletions Tests/NIOTests/BaseObjectsTest+XCTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// BaseObjectsTest+XCTest.swift
///
//
// BaseObjectsTest+XCTest.swift
//
import XCTest

///
Expand Down
6 changes: 3 additions & 3 deletions Tests/NIOTests/BlockingIOThreadPoolTest+XCTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// BlockingIOThreadPoolTest+XCTest.swift
///
//
// BlockingIOThreadPoolTest+XCTest.swift
//
import XCTest

///
Expand Down
6 changes: 3 additions & 3 deletions Tests/NIOTests/ByteBufferTest+XCTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// ByteBufferTest+XCTest.swift
///
//
// ByteBufferTest+XCTest.swift
//
import XCTest

///
Expand Down
6 changes: 3 additions & 3 deletions Tests/NIOTests/ChannelPipelineTest+XCTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// ChannelPipelineTest+XCTest.swift
///
//
// ChannelPipelineTest+XCTest.swift
//
import XCTest

///
Expand Down
6 changes: 3 additions & 3 deletions Tests/NIOTests/ChannelTests+XCTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// ChannelTests+XCTest.swift
///
//
// ChannelTests+XCTest.swift
//
import XCTest

///
Expand Down
6 changes: 3 additions & 3 deletions Tests/NIOTests/CircularBufferTests+XCTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// CircularBufferTests+XCTest.swift
///
//
// CircularBufferTests+XCTest.swift
//
import XCTest

///
Expand Down
6 changes: 3 additions & 3 deletions Tests/NIOTests/CodecTest+XCTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// CodecTest+XCTest.swift
///
//
// CodecTest+XCTest.swift
//
import XCTest

///
Expand Down
6 changes: 3 additions & 3 deletions Tests/NIOTests/CompositeErrorTests+XCTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// CompositeErrorTests+XCTest.swift
///
//
// CompositeErrorTests+XCTest.swift
//
import XCTest

///
Expand Down
6 changes: 3 additions & 3 deletions Tests/NIOTests/DatagramChannelTests+XCTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// DatagramChannelTests+XCTest.swift
///
//
// DatagramChannelTests+XCTest.swift
//
import XCTest

///
Expand Down
6 changes: 3 additions & 3 deletions Tests/NIOTests/EchoServerClientTest+XCTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// EchoServerClientTest+XCTest.swift
///
//
// EchoServerClientTest+XCTest.swift
//
import XCTest

///
Expand Down
6 changes: 3 additions & 3 deletions Tests/NIOTests/EmbeddedChannelTest+XCTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// EmbeddedChannelTest+XCTest.swift
///
//
// EmbeddedChannelTest+XCTest.swift
//
import XCTest

///
Expand Down
6 changes: 3 additions & 3 deletions Tests/NIOTests/EmbeddedEventLoopTest+XCTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// EmbeddedEventLoopTest+XCTest.swift
///
//
// EmbeddedEventLoopTest+XCTest.swift
//
import XCTest

///
Expand Down
6 changes: 3 additions & 3 deletions Tests/NIOTests/EventLoopFutureTest+XCTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// EventLoopFutureTest+XCTest.swift
///
//
// EventLoopFutureTest+XCTest.swift
//
import XCTest

///
Expand Down
6 changes: 3 additions & 3 deletions Tests/NIOTests/EventLoopTest+XCTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// EventLoopTest+XCTest.swift
///
//
// EventLoopTest+XCTest.swift
//
import XCTest

///
Expand Down
6 changes: 3 additions & 3 deletions Tests/NIOTests/FileRegionTest+XCTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// FileRegionTest+XCTest.swift
///
//
// FileRegionTest+XCTest.swift
//
import XCTest

///
Expand Down
6 changes: 3 additions & 3 deletions Tests/NIOTests/HappyEyeballsTest+XCTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
///
/// HappyEyeballsTest+XCTest.swift
///
//
// HappyEyeballsTest+XCTest.swift
//
import XCTest

///
Expand Down
Loading

0 comments on commit 088c09e

Please sign in to comment.