2 ; RUN: split-file %s %t
3 ; RUN: llvm-readtapi -arch x86_64 -extract %t/libfat.tbd -compact -o %t/libslim.tbd 2>&1 | FileCheck --allow-empty %s
4 ; RUN: llvm-readtapi --compare %t/libslim.tbd %t/libslim_expected.tbd 2>&1 | FileCheck --allow-empty %s
6 ; RUN: llvm-readtapi -arch armv7s --extract %t/libfat2.tbd 2>&1 | FileCheck %s --check-prefix OUTPUT
12 ; OUTPUT-NEXT: "main_library": {
13 ; OUTPUT-NEXT: "install_names": [
15 ; OUTPUT-NEXT: "name": "/usr/lib/libfat.dylib"
18 ; OUTPUT-NEXT: "target_info": [
20 ; OUTPUT-NEXT: "target": "armv7s-ios"
24 ; OUTPUT-NEXT: "tapi_tbd_version": 5
55 "name": "/usr/lib/internal/libfat.dylib"
65 "target": "x86_64-macos"
68 "target": "x86_64h-macos"
76 "name": "/usr/lib/libfat.dylib"
79 "reexported_libraries": [
82 "/usr/lib/internal/libfat.dylib"
88 "target": "x86_64-macos"
91 "target": "x86_64h-macos"
102 "exported_symbols": [
113 "name": "/usr/lib/internal/libfat.dylib"
118 "target": "arm64-ios"
126 "name": "/usr/lib/libfat.dylib"
129 "reexported_libraries": [
132 "/usr/lib/internal/libfat.dylib"
141 "target": "armv7s-ios"
144 "target": "arm64-ios"
148 "tapi_tbd_version": 5
151 //--- libslim_expected.tbd
155 "exported_symbols": [
166 "name": "/usr/lib/internal/libfat.dylib"
169 "parent_umbrellas": [
176 "target": "x86_64-macos"
184 "name": "/usr/lib/libfat.dylib"
187 "reexported_libraries": [
190 "/usr/lib/internal/libfat.dylib"
196 "target": "x86_64-macos"
200 "tapi_tbd_version": 5