@@ -1087,22 +1087,13 @@ fileprivate struct CodeSignTaskConstructionTests: CoreBasedTests {
10871087 let testWorkspace = TestWorkspace ( " aWorkspace " , projects: [ testProject] )
10881088 let tester = try await TaskConstructionTester ( getCore ( ) , testWorkspace)
10891089
1090- // Check --library-constraint is passed when the build setting is configured on macOS 14
1091- await tester. checkBuild ( BuildParameters ( action: . install, configuration: " Release " , overrides: [ " LIBRARY_LOAD_CONSTRAINT " : " /tmp/LibraryLoadConstraint.plist " ] ) , runDestination: . macOS, systemInfo : SystemInfo ( operatingSystemVersion : Version ( 14 ) , productBuildVersion : " 99A98 " , nativeArchitecture : " arm64 " ) ) { results in
1090+ // Check --library-constraint is passed
1091+ await tester. checkBuild ( BuildParameters ( action: . install, configuration: " Release " , overrides: [ " LIBRARY_LOAD_CONSTRAINT " : " /tmp/LibraryLoadConstraint.plist " ] ) , runDestination: . macOS) { results in
10921092 results. checkTarget ( " Tool " ) { target in
10931093 results. checkTask ( . matchTarget( target) , . matchRuleType( " CodeSign " ) ) { task in
10941094 task. checkCommandLineMatches ( [ " /usr/bin/codesign " , " --force " , " --sign " , " - " , " --entitlements " , . suffix( " Tool.xcent " ) , " --generate-entitlement-der " , " --library-constraint " , . suffix( " LibraryLoadConstraint.plist " ) , " /tmp/aProject.dst/usr/local/bin/Tool " ] )
10951095 }
10961096 }
10971097 }
1098-
1099- // Check --library-constraint is *not* passed when the build setting is configured on macOS 13
1100- await tester. checkBuild ( BuildParameters ( action: . install, configuration: " Release " , overrides: [ " LIBRARY_LOAD_CONSTRAINT " : " /tmp/LibraryLoadConstraint.plist " ] ) , runDestination: . macOS, systemInfo: SystemInfo ( operatingSystemVersion: Version ( 13 ) , productBuildVersion: " 99A98 " , nativeArchitecture: " arm64 " ) ) { results in
1101- results. checkTarget ( " Tool " ) { target in
1102- results. checkTask ( . matchTarget( target) , . matchRuleType( " CodeSign " ) ) { task in
1103- task. checkCommandLineMatches ( [ " /usr/bin/codesign " , " --force " , " --sign " , " - " , " --entitlements " , . suffix( " Tool.xcent " ) , " --generate-entitlement-der " , " /tmp/aProject.dst/usr/local/bin/Tool " ] )
1104- }
1105- }
1106- }
11071098 }
11081099}
0 commit comments