Skip to content

Commit ca6ff3d

Browse files
committed
Update metal tests to only run on macOS
1 parent a142508 commit ca6ff3d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Sources/_InternalTestSupport/MockBuildTestHelper.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import SPMBuildCore
2020
import TSCUtility
2121

2222
public struct MockToolchain: PackageModel.Toolchain {
23+
public let metalToolchainId: String?
2324
public let metalToolchainPath: Basics.AbsolutePath?
2425
#if os(Windows)
2526
public let librarianPath = AbsolutePath("/fake/path/to/link.exe")

Tests/BuildMetalTests/BuildMetalTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import Metal
1919
@Suite
2020
struct BuildMetalTests {
2121

22+
#if os(macOS)
2223
@Test(
2324
.tags(
2425
.TestSize.large
@@ -65,5 +66,5 @@ struct BuildMetalTests {
6566
#expect(library.functionNames.contains("simpleVertexShader"))
6667
}
6768
}
68-
69+
#endif
6970
}

0 commit comments

Comments
 (0)