Skip to content

Commit df81e19

Browse files
committed
Add .bug() traits to tests
* Add .bug() traits to tests allowing for tracking swift-build integration issues using the "SWBINTTODO" comment string. * bugs with id 0, and SWBINTTODO indicate there needs to be a GH raised. * bugs with a URL indicate there is a tracking issue.
1 parent b4065c1 commit df81e19

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

IntegrationTests/Tests/IntegrationTests/SwiftPMTests.swift

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,14 @@ private struct SwiftPMTests {
7474
}
7575
}
7676

77-
@Test(.requireThreadSafeWorkingDirectory, arguments: BuildSystemProvider.allCases)
77+
@Test(
78+
.requireThreadSafeWorkingDirectory,
79+
.bug(
80+
"https://github.com/swiftlang/swift-package-manager/issues/8416",
81+
"swift run using --build-system swiftbuild fails to run executable"
82+
),
83+
arguments: BuildSystemProvider.allCases
84+
)
7885
func packageInitExecutable(_ buildSystemProvider: BuildSystemProvider) throws {
7986
// Executable
8087
do {
@@ -84,7 +91,7 @@ private struct SwiftPMTests {
8491
try sh(swiftPackage, "--package-path", packagePath, "init", "--type", "executable")
8592
try sh(swiftBuild, "--package-path", packagePath, "--build-system", buildSystemProvider.rawValue)
8693

87-
try withKnownIssue("Issue #8416 - error while loading shared libraries: libswiftCore.so: cannot open shared object file: No such file or directory") {
94+
try withKnownIssue("Error while loading shared libraries: libswiftCore.so: cannot open shared object file: No such file or directory") {
8895
// The 'native' build system uses 'swiftc' as the linker driver, which adds an RUNPATH to the swift runtime libraries in the SDK.
8996
// 'swiftbuild' directly calls clang, which does not add the extra RUNPATH, so runtime libraries cannot be found.
9097
let (stdout, stderr) = try sh(
@@ -99,7 +106,13 @@ private struct SwiftPMTests {
99106
}
100107
}
101108

102-
@Test(.requireThreadSafeWorkingDirectory, arguments: BuildSystemProvider.allCases)
109+
@Test(
110+
.requireThreadSafeWorkingDirectory,
111+
.bug(id: 0, "SWBINTTODO: Linux: /lib/x86_64-linux-gnu/Scrt1.o:function _start: error:"),
112+
.bug("https://github.com/swiftlang/swift-package-manager/issues/8380", "lld-link: error: subsystem must be defined"),
113+
.bug(id:0, "SWBINTTODO: MacOS: Could not find or use auto-linked library 'Testing': library 'Testing' not found"),
114+
arguments: BuildSystemProvider.allCases
115+
)
103116
func packageInitLibrary(_ buildSystemProvider: BuildSystemProvider) throws {
104117
do {
105118
try withTemporaryDirectory { tmpDir in

0 commit comments

Comments
 (0)