2 ; RUN: split-file %s %t
3 ; RUN: mkdir -p %t/SDKRoot/System/Library/Frameworks
4 ; RUN: cp -r %S/Inputs/Simple/* %t/SDKRoot/System/Library/Frameworks/
5 ; RUN: cp -r %S/Inputs/Foundation/* %t/SDKRoot/System/Library/Frameworks/
6 # Skip over header that produces warnings.
7 ; RUN: rm %t/SDKRoot/System/Library/Frameworks/Simple.framework/Headers/Simple.h
9 ; RUN: clang-installapi -target x86_64-apple-macosx10.12 \
10 ; RUN: -install_name /System/Library/Frameworks/Simple.framework/Versions/A/Simple \
11 ; RUN: -current_version 1.2.3 -compatibility_version 1 -o %t/Simple.tbd \
12 ; RUN: -F %t/SDKRoot/System/Library/Frameworks --verify-mode=ErrorsOnly \
13 ; RUN: %t/SDKRoot/System/Library/Frameworks/Simple.framework 2>&1 | FileCheck -allow-empty %s \
14 ; RUN: --implicit-check-not=error --implicit-check-not=warning
15 ; RUN: llvm-readtapi -compare %t/expected.tbd %t/Simple.tbd
17 # Test expected error by collecting too many frameworks.
18 ; RUN: not clang-installapi -target x86_64-apple-macosx10.12 \
19 ; RUN: -install_name /System/Library/Frameworks/Simple.framework/Versions/A/Simple \
20 ; RUN: -current_version 1.2.3 -compatibility_version 1 -o %t/Simple.tbd \
21 ; RUN: -F %t/SDKRoot/System/Library/Frameworks --verify-mode=ErrorsOnly \
22 ; RUN: %t/SDKRoot/ 2>&1 | FileCheck %s --check-prefix=TOO_MANY
24 ; TOO_MANY: error: more than one framework/dynamic library found
40 "_privateGlobalVariable"
53 "ExternalManagedObject"
63 "_weakPrivateGlobalVariable"
71 "not_app_extension_safe"
77 "name": "/System/Library/Frameworks/Simple.framework/Versions/A/Simple"
82 "min_deployment": "10.12",
83 "target": "x86_64-macos"