44 lines
1.5 KiB
Swift
44 lines
1.5 KiB
Swift
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the Swift Baggage Context open source project
|
|
//
|
|
// Copyright (c) 2020 Moritz Lang and the Swift Baggage Context project authors
|
|
// Licensed under Apache License v2.0
|
|
//
|
|
// See LICENSE.txt for license information
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// LinuxMain.swift
|
|
//
|
|
import XCTest
|
|
///
|
|
/// NOTE: This file was generated by generate_linux_tests.rb
|
|
///
|
|
/// Do NOT edit this file directly as it will be regenerated automatically when needed.
|
|
///
|
|
|
|
#if os(Linux) || os(FreeBSD)
|
|
@testable import BaggageContextTests
|
|
@testable import BaggageTests
|
|
|
|
// This protocol is necessary to we can call the 'run' method (on an existential of this protocol)
|
|
// without the compiler noticing that we're calling a deprecated function.
|
|
// This hack exists so we can deprecate individual tests which test deprecated functionality without
|
|
// getting a compiler warning...
|
|
protocol LinuxMainRunner { func run() }
|
|
class LinuxMainRunnerImpl: LinuxMainRunner {
|
|
@available(*, deprecated, message: "not actually deprecated. Just deprecated to allow deprecated tests (which test deprecated functionality) without warnings")
|
|
func run() {
|
|
XCTMain([
|
|
testCase(BaggageContextTests.allTests),
|
|
testCase(BaggageTests.allTests),
|
|
testCase(FrameworkBaggageContextTests.allTests),
|
|
])
|
|
}
|
|
}
|
|
(LinuxMainRunnerImpl() as LinuxMainRunner).run()
|
|
#endif
|