@@ -867,8 +867,9 @@ final class BuildPlanTests: XCTestCase {
867867 let llbuild = LLBuildManifestBuilder ( plan, fileSystem: fs, observabilityScope: observability. topScope)
868868 try llbuild. generateManifest ( at: yaml)
869869 let contents : String = try fs. readFileContents ( yaml)
870+ let swiftGetVersionFilePath = try XCTUnwrap ( llbuild. swiftGetVersionFiles. first? . value)
870871 XCTAssertMatch ( contents, . contains( """
871- inputs: [ " \( Pkg . appending ( components: " Sources " , " exe " , " main.swift " ) . escapedPathString ( ) ) " , " \( buildPath. appending ( components: " PkgLib.swiftmodule " ) . escapedPathString ( ) ) " , " \( buildPath. appending ( components: " exe.build " , " sources " ) . escapedPathString ( ) ) " ]
872+ inputs: [ " \( Pkg . appending ( components: " Sources " , " exe " , " main.swift " ) . escapedPathString ( ) ) " , " \( swiftGetVersionFilePath . escapedPathString ( ) ) " , " \( buildPath. appending ( components: " PkgLib.swiftmodule " ) . escapedPathString ( ) ) " , " \( buildPath. appending ( components: " exe.build " , " sources " ) . escapedPathString ( ) ) " ]
872873 """ ) )
873874
874875 }
@@ -896,8 +897,9 @@ final class BuildPlanTests: XCTestCase {
896897 try llbuild. generateManifest ( at: yaml)
897898 let contents : String = try fs. readFileContents ( yaml)
898899 let buildPath = plan. buildParameters. dataPath. appending ( components: " debug " )
900+ let swiftGetVersionFilePath = try XCTUnwrap ( llbuild. swiftGetVersionFiles. first? . value)
899901 XCTAssertMatch ( contents, . contains( """
900- inputs: [ " \( Pkg . appending ( components: " Sources " , " exe " , " main.swift " ) . escapedPathString ( ) ) " , " \( buildPath. appending ( components: " exe.build " , " sources " ) . escapedPathString ( ) ) " ]
902+ inputs: [ " \( Pkg . appending ( components: " Sources " , " exe " , " main.swift " ) . escapedPathString ( ) ) " , " \( swiftGetVersionFilePath . escapedPathString ( ) ) " , " \( buildPath. appending ( components: " exe.build " , " sources " ) . escapedPathString ( ) ) " ]
901903 """ ) )
902904 }
903905 }
@@ -3894,14 +3896,15 @@ final class BuildPlanTests: XCTestCase {
38943896 let llbuild = LLBuildManifestBuilder ( plan, fileSystem: fs, observabilityScope: observability. topScope)
38953897 try llbuild. generateManifest ( at: yaml)
38963898 let contents : String = try fs. readFileContents ( yaml)
3899+ let swiftGetVersionFilePath = try XCTUnwrap ( llbuild. swiftGetVersionFiles. first? . value)
38973900
38983901#if os(Windows)
38993902 let suffix = " .exe "
39003903#else // FIXME(5472) - the suffix is dropped
39013904 let suffix = " "
39023905#endif
39033906 XCTAssertMatch ( contents, . contains( """
3904- inputs: [ " \( PkgA . appending ( components: " Sources " , " swiftlib " , " lib.swift " ) . escapedPathString ( ) ) " , " \( buildPath. appending ( components: " exe \( suffix) " ) . escapedPathString ( ) ) " , " \( buildPath. appending ( components: " swiftlib.build " , " sources " ) . escapedPathString ( ) ) " ]
3907+ inputs: [ " \( PkgA . appending ( components: " Sources " , " swiftlib " , " lib.swift " ) . escapedPathString ( ) ) " , " \( swiftGetVersionFilePath . escapedPathString ( ) ) " , " \( buildPath. appending ( components: " exe \( suffix) " ) . escapedPathString ( ) ) " , " \( buildPath. appending ( components: " swiftlib.build " , " sources " ) . escapedPathString ( ) ) " ]
39053908 outputs: [ " \( buildPath. appending ( components: " swiftlib.build " , " lib.swift.o " ) . escapedPathString ( ) ) " , " \( buildPath. escapedPathString ( ) )
39063909 """ ) )
39073910 }
@@ -4804,10 +4807,11 @@ final class BuildPlanTests: XCTestCase {
48044807 let yaml = buildPath. appending ( " release.yaml " )
48054808 let llbuild = LLBuildManifestBuilder ( plan, fileSystem: fs, observabilityScope: observability. topScope)
48064809 try llbuild. generateManifest ( at: yaml)
4810+ let swiftGetVersionFilePath = try XCTUnwrap ( llbuild. swiftGetVersionFiles. first? . value)
48074811
48084812 let yamlContents : String = try fs. readFileContents ( yaml)
48094813 let inputs : SerializedJSON = """
4810- inputs: [ " \( AbsolutePath ( " /Pkg/Snippets/ASnippet.swift " ) ) " , " \( AbsolutePath ( " /Pkg/.build/debug/Lib.swiftmodule " ) ) "
4814+ inputs: [ " \( AbsolutePath ( " /Pkg/Snippets/ASnippet.swift " ) ) " , " \( swiftGetVersionFilePath . escapedPathString ( ) ) " , " \( AbsolutePath ( " /Pkg/.build/debug/Lib.swiftmodule " ) ) "
48114815 """
48124816 XCTAssertMatch ( yamlContents, . contains( inputs. underlying) )
48134817 }
0 commit comments