Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/CoreCommands/Options.swift
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ public struct BuildOptions: ParsableArguments {
/// Which compile-time sanitizers should be enabled.
@Option(
name: .customLong("sanitize"),
help: "Turn on runtime checks for erroneous behavior, possible values: \(Sanitizer.formattedValues)."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this accidentally added from a different PR?

Copy link
Contributor Author

@bkhouri bkhouri Oct 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was not. swift argument parser library lists the possible values, so the redundant text was removed.

help: "Turn on runtime checks for erroneous behavior."
)
public var sanitizers: [Sanitizer] = []

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ public struct BuildData {
public func getBuildData(for buildSystems: [BuildSystemProvider.Kind]) -> [BuildData] {
buildSystems.flatMap { buildSystem in
BuildConfiguration.allCases.compactMap { config in
return BuildData(buildSystem: buildSystem, config: config)
return BuildData(
buildSystem: buildSystem,
config: config,
)
}
}
}
32 changes: 32 additions & 0 deletions Sources/_InternalTestSupport/SwiftTesting+Data.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
This source file is part of the Swift.org open source project

Copyright (c) 2025 Apple Inc. and the Swift project authors
Licensed under Apache License v2.0 with Runtime Library Exception

See http://swift.org/LICENSE.txt for license information
See http://swift.org/CONTRIBUTORS.txt for Swift project authors
*/

import Testing

public struct TestBuildData {
public let buildData: [BuildData]
public let tags: any TestTrait
}

public let buildDataUsingAllBuildSystemWithTags = TestBuildData(
buildData: getBuildData(for: SupportedBuildSystemOnPlatform),
tags: .tags(
.Feature.CommandLineArguments.BuildSystem,
.Feature.CommandLineArguments.Configuration
)
)

public let buildDataUsingBuildSystemAvailableOnAllPlatformsWithTags = TestBuildData(
buildData: getBuildData(for: SupportedBuildSystemOnAllPlatforms),
tags: .tags(
.Feature.CommandLineArguments.BuildSystem,
.Feature.CommandLineArguments.Configuration
)
)
42 changes: 42 additions & 0 deletions Sources/_InternalTestSupport/SwiftTesting+Tags.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@ extension Tag.TestSize {

extension Tag.Feature {
public enum Command {}
public enum CommandLineArguments {}
public enum EnvironmentVariables {}
public enum PackageType {}
public enum ProductType {}
public enum TargetType {}

@Tag public static var BuildCache: Tag
@Tag public static var CodeCoverage: Tag
@Tag public static var Mirror: Tag
@Tag public static var NetRc: Tag
Expand All @@ -47,6 +50,45 @@ extension Tag.Feature.Command {
@Tag public static var Test: Tag
}

extension Tag.Feature.CommandLineArguments {
public enum Experimental {}
@Tag public static var BuildSystem: Tag
@Tag public static var BuildTests: Tag
@Tag public static var Configuration: Tag
@Tag public static var DisableGetTaskAllowEntitlement: Tag
@Tag public static var EnableParseableModuleInterfaces: Tag
@Tag public static var EnableGetTaskAllowEntitlement: Tag
@Tag public static var EnableTestDiscovery: Tag
@Tag public static var ExplicitTargetDependencyImportCheck: Tag
@Tag public static var Help: Tag
@Tag public static var Product: Tag
@Tag public static var PrintManifestJobGraph: Tag
@Tag public static var PrintPIFManifestGraph: Tag
@Tag public static var Quiet: Tag
@Tag public static var ShowBinPath: Tag
@Tag public static var Target: Tag
@Tag public static var Toolset: Tag
@Tag public static var Triple: Tag
@Tag public static var Version: Tag
@Tag public static var Verbose: Tag
@Tag public static var VeryVerbose: Tag
@Tag public static var Xlinker: Tag
@Tag public static var Xcc: Tag
@Tag public static var Xcxx: Tag
@Tag public static var SWIFT_ORIGINAL_PATH: Tag
@Tag public static var Xswiftc: Tag
}

extension Tag.Feature.CommandLineArguments.Experimental {
@Tag public static var BuildDylibsAsFrameworks: Tag
}
extension Tag.Feature.EnvironmentVariables {
@Tag public static var CUSTOM_SWIFT_VERSION: Tag
@Tag public static var SWIFT_EXEC: Tag
@Tag public static var SWIFT_EXEC_MANIFEST: Tag
@Tag public static var SWIFT_ORIGINAL_PATH: Tag
}

extension Tag.Feature.Command.Package {
@Tag public static var General: Tag
@Tag public static var AddDependency: Tag
Expand Down
Loading