Skip to content

Commit 4063121

Browse files
committed
Testing Windows CI
1 parent d3be121 commit 4063121

File tree

2 files changed

+62
-117
lines changed

2 files changed

+62
-117
lines changed

Package.swift

Lines changed: 2 additions & 117 deletions
Original file line numberDiff line numberDiff line change
@@ -268,123 +268,8 @@ let package = Package(
268268

269269
// Tests
270270
.testTarget(
271-
name: "SWBAndroidPlatformTests",
272-
dependencies: ["SWBAndroidPlatform", "SWBTestSupport"],
273-
swiftSettings: swiftSettings(languageMode: .v6)),
274-
.testTarget(
275-
name: "SWBApplePlatformTests",
276-
dependencies: ["SWBApplePlatform", "SWBTestSupport"],
277-
swiftSettings: swiftSettings(languageMode: .v6)),
278-
.testTarget(
279-
name: "SWBGenericUnixPlatformTests",
280-
dependencies: ["SWBGenericUnixPlatform", "SWBTestSupport"],
281-
swiftSettings: swiftSettings(languageMode: .v6)),
282-
.testTarget(
283-
name: "SWBQNXPlatformTests",
284-
dependencies: ["SWBQNXPlatform", "SWBTestSupport"],
285-
swiftSettings: swiftSettings(languageMode: .v6)),
286-
.testTarget(
287-
name: "SWBUniversalPlatformTests",
288-
dependencies: ["SWBUniversalPlatform", "SWBTestSupport"],
289-
swiftSettings: swiftSettings(languageMode: .v6)),
290-
.testTarget(
291-
name: "SWBWebAssemblyPlatformTests",
292-
dependencies: ["SWBWebAssemblyPlatform", "SWBTestSupport"],
293-
swiftSettings: swiftSettings(languageMode: .v6)),
294-
.testTarget(
295-
name: "SWBWindowsPlatformTests",
296-
dependencies: ["SWBWindowsPlatform", "SWBTestSupport"],
297-
swiftSettings: swiftSettings(languageMode: .v6)),
298-
.testTarget(
299-
name: "SwiftBuildTests",
300-
dependencies: ["SwiftBuild", "SWBBuildService", "SwiftBuildTestSupport"],
301-
resources: [
302-
.copy("TestData")
303-
],
304-
swiftSettings: swiftSettings(languageMode: .v6)),
305-
.testTarget(
306-
name: "SWBProjectModelTests",
307-
dependencies: ["SWBProjectModel"],
308-
swiftSettings: swiftSettings(languageMode: .v6)),
309-
.testTarget(
310-
name: "SWBProtocolTests",
311-
dependencies: ["SWBProtocol", "SWBUtil"],
312-
swiftSettings: swiftSettings(languageMode: .v6)),
313-
.testTarget(
314-
name: "SWBUtilTests",
315-
dependencies: ["SWBTestSupport", "SWBUtil"],
316-
swiftSettings: swiftSettings(languageMode: .v6)),
317-
.testTarget(
318-
name: "SWBCASTests",
319-
dependencies: ["SWBTestSupport", "SWBCAS", "SWBUtil"],
320-
swiftSettings: swiftSettings(languageMode: .v6)),
321-
.testTarget(
322-
name: "SWBMacroTests",
323-
dependencies: ["SWBTestSupport", "SWBMacro"],
324-
swiftSettings: swiftSettings(languageMode: .v6)),
325-
.testTarget(
326-
name: "SWBServiceCoreTests",
327-
dependencies: ["SWBServiceCore"],
328-
swiftSettings: swiftSettings(languageMode: .v6)),
329-
.testTarget(
330-
name: "SWBCoreTests",
331-
dependencies: ["SWBCore", "SWBTestSupport", "SWBUtil", "SWBLLBuild"],
332-
swiftSettings: swiftSettings(languageMode: .v6)),
333-
.testTarget(
334-
name: "SWBTaskConstructionTests",
335-
dependencies: ["SWBTaskConstruction", "SWBCore", "SWBTestSupport", "SWBProtocol", "SWBUtil"],
336-
swiftSettings: swiftSettings(languageMode: .v6)),
337-
.testTarget(
338-
name: "SWBTaskExecutionTests",
339-
dependencies: ["SWBTaskExecution", "SWBTestSupport"],
340-
resources: [
341-
.copy("TestData")
342-
],
343-
swiftSettings: swiftSettings(languageMode: .v6)),
344-
.testTarget(
345-
name: "SWBLLBuildTests",
346-
dependencies: ["SWBLLBuild", "SWBTestSupport"],
347-
swiftSettings: swiftSettings(languageMode: .v6)),
348-
.testTarget(
349-
name: "SWBBuildSystemTests",
350-
dependencies: ["SWBBuildService", "SWBBuildSystem", "SwiftBuildTestSupport", "SWBTestSupport"],
351-
resources: [
352-
.copy("TestData")
353-
],
354-
swiftSettings: swiftSettings(languageMode: .v6)),
355-
.testTarget(
356-
name: "SWBBuildServiceTests",
357-
dependencies: ["SwiftBuild", "SWBBuildService", "SWBTestSupport"],
358-
swiftSettings: swiftSettings(languageMode: .v6)),
359-
.testTarget(
360-
name: "SWBTestSupportTests",
361-
dependencies: ["SWBTestSupport"],
362-
swiftSettings: swiftSettings(languageMode: .v6)),
363-
364-
// Perf tests
365-
.testTarget(
366-
name: "SWBBuildSystemPerfTests",
367-
dependencies: ["SWBBuildSystem", "SWBTestSupport"],
368-
swiftSettings: swiftSettings(languageMode: .v6)),
369-
.testTarget(
370-
name: "SWBCASPerfTests",
371-
dependencies: ["SWBCAS", "SWBTestSupport"],
372-
swiftSettings: swiftSettings(languageMode: .v6)),
373-
.testTarget(
374-
name: "SWBCorePerfTests",
375-
dependencies: ["SWBCore", "SWBTestSupport"],
376-
swiftSettings: swiftSettings(languageMode: .v6)),
377-
.testTarget(
378-
name: "SWBTaskConstructionPerfTests",
379-
dependencies: ["SWBTaskConstruction", "SWBTestSupport"],
380-
swiftSettings: swiftSettings(languageMode: .v6)),
381-
.testTarget(
382-
name: "SWBUtilPerfTests",
383-
dependencies: ["SWBUtil", "SWBTestSupport"],
384-
swiftSettings: swiftSettings(languageMode: .v6)),
385-
.testTarget(
386-
name: "SwiftBuildPerfTests",
387-
dependencies: ["SwiftBuild", "SWBTestSupport", "SwiftBuildTestSupport"],
271+
name: "ScratchTests",
272+
dependencies: ["SWBCLibc", "SWBLibc"],
388273
swiftSettings: swiftSettings(languageMode: .v6)),
389274

390275
// Commands

Tests/ScratchTests/Tests.swift

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
//
2+
// Tests.swift
3+
// SwiftBuild
4+
//
5+
// Created by Owen Voorhees on 2/14/25.
6+
//
7+
8+
import Testing
9+
import SWBCLibc
10+
import SWBLibc
11+
12+
@Suite
13+
fileprivate struct ScratchTests {
14+
@Test
15+
func test() async throws {
16+
print("Hello, world!")
17+
for dll in ["api-ms-win-core-path-l1-1-0.dll",
18+
"SHLWAPI.dll",
19+
"swiftCore.dll",
20+
"MSVCP140.dll",
21+
"swiftSwiftOnoneSupport.dll",
22+
"swift_Concurrency.dll",
23+
"swift_StringProcessing.dll",
24+
"swiftWinSDK.dll",
25+
"ADVAPI32.dll",
26+
"KERNEL32.dll",
27+
"bcrypt.dll",
28+
"SHELL32.dll",
29+
"ole32.dll",
30+
"swiftCRT.dll",
31+
"Foundation.dll",
32+
"FoundationInternationalization.dll",
33+
"FoundationEssentials.dll",
34+
"swiftDispatch.dll",
35+
"BlocksRuntime.dll",
36+
"swiftSynchronization.dll",
37+
"Testing.dll",
38+
"swiftRegexBuilder.dll",
39+
"FoundationXML.dll",
40+
"XCTest.dll",
41+
"VCRUNTIME140.dll",
42+
"api-ms-win-crt-stdio-l1-1-0.dll",
43+
"api-ms-win-crt-environment-l1-1-0.dll",
44+
"api-ms-win-crt-runtime-l1-1-0.dll",
45+
"api-ms-win-crt-math-l1-1-0.dll",
46+
"api-ms-win-crt-heap-l1-1-0.dll",
47+
"api-ms-win-crt-time-l1-1-0.dll",
48+
"api-ms-win-crt-filesystem-l1-1-0.dll",
49+
"api-ms-win-crt-string-l1-1-0.dll",
50+
"api-ms-win-crt-utility-l1-1-0.dll",
51+
"api-ms-win-crt-convert-l1-1-0.dll",
52+
"api-ms-win-crt-locale-l1-1-0.dll"] {
53+
if let handle = LoadLibraryW(dll) {
54+
print("Failed to load \(dll)")
55+
} else {
56+
print("Successfully loaded \(dll)")
57+
}
58+
}
59+
}
60+
}

0 commit comments

Comments
 (0)