Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-readtapi / merge-invalid.test
blobd97db79b8c44250b17f8ce4fabb61b126f263eb4
1 ; RUN: rm -rf %t
2 ; RUN: split-file %s %t
3 // Check invalid tbd file contents was propagated as error.
4 ; RUN: not llvm-readtapi -merge %t/libfoo.tbd %t/libbar.tbd 2>&1 | FileCheck %s --allow-empty --check-prefix DIFF
5 // Check missing input.
6 ; RUN: not llvm-readtapi -merge %t/libfoo.tbd 2>&1 | FileCheck %s --allow-empty --check-prefix INPUT
8 ; DIFF: install names do not match
9 ; INPUT: merge requires at least two input files
11 ;--- libfoo.tbd
13   "main_library": {
14     "allowable_clients": [
15       {
16         "clients": [
17           "ClientAll"
18         ]
19       }
20     ],
21     "install_names": [
22       {
23         "name": "/usr/lib/libfoo.dylib"
24       }
25     ],
26     "target_info": [
27       {
28         "min_deployment": "13.1",
29         "target": "x86_64-macos"
30       }
31     ]
32   },
33   "tapi_tbd_version": 5
36 ;--- libbar.tbd
37 --- !tapi-tbd
38 tbd-version:     4
39 targets:         [ arm64-macos ]
40 install-name:    '/usr/lib/libbar.dylib'
41 allowable-clients:
42   - targets:         [ arm64-macos ]
43     clients:         [ ClientAll ]
44 reexported-libraries:
45   - targets:         [ arm64-macos ]
46     libraries:       [ '/usr/lib/liball.dylib' ]
47 exports:
48   - targets:         [ arm64-macos ]
49     symbols:         [ _sym1 ]
50     objc-classes:    [ _A ]
51     objc-ivars:      [ _A._ivar1 ]
52     weak-symbols:    [ _weak1 ]
53     thread-local-symbols: [ _tlv1 ]
54 ...