Skip to content

Commit 57ac081

Browse files
committed
generate linux tests
1 parent 9f906e2 commit 57ac081

File tree

2 files changed

+41
-2
lines changed

2 files changed

+41
-2
lines changed

Tests/LinuxMain.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import XCTest
2323
///
2424

2525
#if os(Linux) || os(FreeBSD)
26-
@testable import ServiceContextModule
26+
@testable import ServiceContextTests
2727

2828
// This protocol is necessary to we can call the 'run' method (on an existential of this protocol)
2929
// without the compiler noticing that we're calling a deprecated function.
@@ -34,7 +34,7 @@ class LinuxMainRunnerImpl: LinuxMainRunner {
3434
@available(*, deprecated, message: "not actually deprecated. Just deprecated to allow deprecated tests (which test deprecated functionality) without warnings")
3535
func run() {
3636
XCTMain([
37-
testCase(BaggageTests.allTests),
37+
testCase(ServiceContextTests.allTests),
3838
])
3939
}
4040
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift Service Context
4+
// open source project
5+
//
6+
// Copyright (c) 2020-2021 Apple Inc. and the Swift Service Context
7+
// project authors
8+
// Licensed under Apache License v2.0
9+
//
10+
// See LICENSE.txt for license information
11+
//
12+
// SPDX-License-Identifier: Apache-2.0
13+
//
14+
//===----------------------------------------------------------------------===//
15+
//
16+
// ServiceContextTests+XCTest.swift
17+
//
18+
import XCTest
19+
///
20+
/// NOTE: This file was generated by generate_linux_tests.rb
21+
///
22+
/// Do NOT edit this file directly as it will be regenerated automatically when needed.
23+
///
24+
25+
extension ServiceContextTests {
26+
27+
@available(*, deprecated, message: "not actually deprecated. Just deprecated to allow deprecated tests (which test deprecated functionality) without warnings")
28+
static var allTests : [(String, (ServiceContextTests) -> () throws -> Void)] {
29+
return [
30+
("test_topLevelServiceContextIsEmpty", test_topLevelServiceContextIsEmpty),
31+
("test_readAndWriteThroughSubscript", test_readAndWriteThroughSubscript),
32+
("test_forEachIteratesOverAllServiceContextItems", test_forEachIteratesOverAllServiceContextItems),
33+
("test_TODO_doesNotCrashWithoutExplicitCompilerFlag", test_TODO_doesNotCrashWithoutExplicitCompilerFlag),
34+
("test_automaticPropagationThroughTaskLocal", test_automaticPropagationThroughTaskLocal),
35+
("test", test),
36+
]
37+
}
38+
}
39+

0 commit comments

Comments
 (0)