@@ -1087,22 +1087,13 @@ fileprivate struct CodeSignTaskConstructionTests: CoreBasedTests {
1087
1087
let testWorkspace = TestWorkspace ( " aWorkspace " , projects: [ testProject] )
1088
1088
let tester = try await TaskConstructionTester ( getCore ( ) , testWorkspace)
1089
1089
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
1092
1092
results. checkTarget ( " Tool " ) { target in
1093
1093
results. checkTask ( . matchTarget( target) , . matchRuleType( " CodeSign " ) ) { task in
1094
1094
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 " ] )
1095
1095
}
1096
1096
}
1097
1097
}
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
- }
1107
1098
}
1108
1099
}
0 commit comments