mirror of
https://github.com/swift-server/swift-service-lifecycle
synced 2026-11-30 05:28:48 +00:00
motivation: finalize naming and API towards 1.0 changes: * rename package to swift-service-boostrap * rename modules to Lifecycle and LifecycleNIOCompat * create top level namespace named Lifecycle * rename LifecycleItem to LifecycleTask, with Lifecycle.Task typealias * define top-level type called ServiceLifecycle where signal handling and backtraces are handled * rename Lifecycle to ComponentLifecycle and conform it to Lifecycle.Task so that lifecycles can be nested * change shutdown to return an error to better conform with Lifecycle.Task api * improve logging * improve API docs * adjust tests
33 lines
911 B
Swift
33 lines
911 B
Swift
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the SwiftServiceLauncher open source project
|
|
//
|
|
// Copyright (c) 2019-2020 Apple Inc. and the SwiftServiceLauncher project authors
|
|
// Licensed under Apache License v2.0
|
|
//
|
|
// See LICENSE.txt for license information
|
|
// See CONTRIBUTORS.txt for the list of SwiftServiceLauncher project authors
|
|
//
|
|
// 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 LifecycleTests
|
|
|
|
XCTMain([
|
|
testCase(ComponentLifecycleTests.allTests),
|
|
testCase(ServiceLifecycleTests.allTests),
|
|
])
|
|
#endif
|