Skip to content

Commit 1de5219

Browse files
committed
XCTestManifests
1 parent 6f30167 commit 1de5219

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

Tests/LinuxMain.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ XCTMain([
2424
testCase(ManifestTests.allTests),
2525
testCase(MiscellaneousTestCase.allTests),
2626
testCase(ManifestParserTestSuite.PackageTests.allTests),
27-
testCase(ModuleTests.allTests),
27+
testCase(ModuleDependencyTests.allTests),
28+
testCase(ValidSourcesTests.allTests),
29+
testCase(PrimitiveResolutionTests.allTests),
2830
testCase(PackageDescriptionTestSuite.PackageTests.allTests),
2931
testCase(PackageTypeTestSuite.PackageTests.allTests),
3032
testCase(PathTests.allTests),

Tests/Transmute/XCTestManifests.swift

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
This source file is part of the Swift.org open source project
3+
4+
Copyright 2015 - 2016 Apple Inc. and the Swift project authors
5+
Licensed under Apache License v2.0 with Runtime Library Exception
6+
7+
See http://swift.org/LICENSE.txt for license information
8+
See http://swift.org/CONTRIBUTORS.txt for Swift project authors
9+
*/
10+
11+
extension ModuleDependencyTests {
12+
static var allTests : [(String, ModuleDependencyTests -> () throws -> Void)] {
13+
return [
14+
("test1", test1),
15+
("test2", test2),
16+
("test3", test3),
17+
("test4", test4),
18+
("test5", test5),
19+
("test6", test6),
20+
]
21+
}
22+
}
23+
24+
extension PrimitiveResolutionTests {
25+
static var allTests : [(String, PrimitiveResolutionTests -> () throws -> Void)] {
26+
return [
27+
("testResolvesSingleSwiftModule", testResolvesSingleSwiftModule),
28+
("testResolvesSystemModulePackage", testResolvesSystemModulePackage),
29+
("testResolvesSingleClangModule", testResolvesSingleClangModule),
30+
]
31+
}
32+
}
33+
34+
extension ValidSourcesTests {
35+
static var allTests : [(String, ValidSourcesTests -> () throws -> Void)] {
36+
return [
37+
("testDotFilesAreIgnored", testDotFilesAreIgnored),
38+
]
39+
}
40+
}

0 commit comments

Comments
 (0)