File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Tests/PackageLoadingTests Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -3477,6 +3477,31 @@ final class PackageBuilderTests: XCTestCase {
3477
3477
}
3478
3478
}
3479
3479
}
3480
+
3481
+ func testOutOfTargetSource( ) throws {
3482
+ let fs = InMemoryFileSystem (
3483
+ emptyFiles:
3484
+ " /Sources/foo/foo.swift " ,
3485
+ " /Sources/bar/bar.swift "
3486
+ )
3487
+
3488
+ let manifest = try Manifest . createRootManifest (
3489
+ displayName: " pkg " ,
3490
+ toolsVersion: . vNext,
3491
+ targets: [
3492
+ TargetDescription (
3493
+ name: " foo " ,
3494
+ sources: [ " ../bar/bar.swift " ]
3495
+ ) ,
3496
+ ]
3497
+ )
3498
+
3499
+ PackageBuilderTester ( manifest, in: fs) { package , _ in
3500
+ package . checkModule ( " foo " ) { module in
3501
+ module. checkSources ( sources: [ " ../bar/bar.swift " ] )
3502
+ }
3503
+ }
3504
+ }
3480
3505
}
3481
3506
3482
3507
final class PackageBuilderTester {
You can’t perform that action at this time.
0 commit comments