277 lines · plain
1; RUN: rm -rf %t2; RUN: split-file %s %t 3// Check that arch removal is accepted with tbdv5 and various inlined contents.4 5; RUN: llvm-readtapi --remove -arch x86_64h %t/libfat.tbd -o %t/libslim.tbd 2>&1 | FileCheck --allow-empty %s6; RUN: llvm-readtapi --compare %t/libslim.tbd %t/libslim_expected.tbd7 8; RUN: llvm-readtapi --remove -arch x86_64h %t/libfat2.tbd -o %t/libslim2.tbd 2>&1 | FileCheck --allow-empty %s9; RUN: llvm-readtapi --compare %t/libslim2.tbd %t/libslim_expected.tbd10 11; RUN: llvm-readtapi --remove -arch x86_64 %t/libfat3.tbd -o %t/libslim3.tbd 2>&1 | FileCheck --allow-empty %s12; RUN: llvm-readtapi --compare %t/libslim3.tbd %t/libslim3_expected.tbd13 14; CHECK-NOT: error15; CHECK-NOT: warning16 17//--- libfat.tbd18{19 "libraries": [20 {21 "exported_symbols": [22 {23 "data": {24 "global": [25 "_sym1"26 ]27 },28 "targets": [29 "x86_64-macos"30 ]31 },32 {33 "data": {34 "global": [35 "_sym2"36 ]37 },38 "targets": [39 "x86_64h-macos"40 ]41 }42 ],43 "install_names": [44 {45 "name": "/usr/lib/internal/libfat.dylib"46 }47 ],48 "parent_umbrellas": [49 {50 "umbrella": "fat"51 }52 ],53 "target_info": [54 {55 "target": "x86_64-macos"56 },57 {58 "target": "x86_64h-macos"59 }60 ]61 }62 ],63 "main_library": {64 "install_names": [65 {66 "name": "/usr/lib/libfat.dylib"67 }68 ],69 "reexported_libraries": [70 {71 "names": [72 "/usr/lib/internal/libfat.dylib"73 ]74 }75 ],76 "target_info": [77 {78 "target": "x86_64-macos"79 },80 {81 "target": "x86_64h-macos"82 }83 ]84 },85 "tapi_tbd_version": 586}87 88//--- libfat2.tbd89{90 "libraries": [91 {92 "exported_symbols": [93 {94 "data": {95 "global": [96 "_sym1"97 ]98 },99 "targets": [100 "x86_64-macos"101 ]102 },103 {104 "data": {105 "global": [106 "_sym2"107 ]108 },109 "targets": [110 "x86_64h-macos"111 ]112 }113 ],114 "install_names": [115 {116 "name": "/usr/lib/internal/libfat.dylib"117 }118 ],119 "parent_umbrellas": [120 {121 "umbrella": "fat"122 }123 ],124 "target_info": [125 {126 "target": "x86_64-macos"127 },128 {129 "target": "x86_64h-macos"130 }131 ]132 }133 ],134 "main_library": {135 "install_names": [136 {137 "name": "/usr/lib/libfat.dylib"138 }139 ],140 "reexported_libraries": [141 {142 "names": [143 "/usr/lib/internal/libfat.dylib"144 ]145 }146 ],147 "target_info": [148 {149 "target": "x86_64-macos"150 }151 ]152 },153 "tapi_tbd_version": 5154}155 156//--- libfat3.tbd157{158 "libraries": [159 {160 "exported_symbols": [161 {162 "data": {163 "global": [164 "_sym1"165 ]166 }167 }168 ],169 "install_names": [170 {171 "name": "/usr/lib/internal/libfat.dylib"172 }173 ],174 "target_info": [175 {176 "target": "x86_64-macos"177 }178 ]179 }180 ],181 "main_library": {182 "install_names": [183 {184 "name": "/usr/lib/libfat.dylib"185 }186 ],187 "reexported_libraries": [188 {189 "names": [190 "/usr/lib/internal/libfat.dylib"191 ],192 "targets": [193 "x86_64-macos"194 ]195 }196 ],197 "target_info": [198 {199 "target": "x86_64-macos"200 },201 {202 "target": "x86_64h-macos"203 }204 ]205 },206 "tapi_tbd_version": 5207}208 209//--- libslim_expected.tbd210{211 "libraries": [212 {213 "exported_symbols": [214 {215 "data": {216 "global": [217 "_sym1"218 ]219 }220 }221 ],222 "install_names": [223 {224 "name": "/usr/lib/internal/libfat.dylib"225 }226 ],227 "parent_umbrellas": [228 {229 "umbrella": "fat"230 }231 ],232 "target_info": [233 {234 "target": "x86_64-macos"235 }236 ]237 }238 ],239 "main_library": {240 "install_names": [241 {242 "name": "/usr/lib/libfat.dylib"243 }244 ],245 "reexported_libraries": [246 {247 "names": [248 "/usr/lib/internal/libfat.dylib"249 ]250 }251 ],252 "target_info": [253 {254 "target": "x86_64-macos"255 }256 ]257 },258 "tapi_tbd_version": 5259}260 261//--- libslim3_expected.tbd262{263 "main_library": {264 "install_names": [265 {266 "name": "/usr/lib/libfat.dylib"267 }268 ],269 "target_info": [270 {271 "target": "x86_64h-macos"272 }273 ]274 },275 "tapi_tbd_version": 5276}277