2 ; RUN: split-file %s %t
3 // Check readtapi only accepts one file.
4 ; RUN: not llvm-readtapi -extract %t/libfoo.tbd %t/libbar.tbd 2>&1 | FileCheck %s --allow-empty --check-prefix EXTRA
5 // Check missing argument.
6 ; RUN: not llvm-readtapi -extract %t/libfoo.tbd 2>&1 | FileCheck %s --allow-empty --check-prefix MISSING
7 // Check that TBD file manipulation was not valid and error propagated as expected.
8 ; RUN: not llvm-readtapi -arch x86_64 -extract %t/libfoo.tbd 2>&1 | FileCheck %s --allow-empty --check-prefix MISMATCH
10 ; EXTRA: error: extract only supports one input file
11 ; MISSING: extract requires -arch <arch>
12 ; MISMATCH: error: {{.*}}libfoo.tbd' file doesn't have architecture 'x86_64'
17 targets: [ arm64-ios ]
18 flags: [ not_app_extension_safe ]
19 install-name: '/usr/lib/libfoo.dylib'
21 - targets: [ arm64-ios ]
40 "not_app_extension_safe"
46 "name": "/usr/lib/libbar.dylib"