2 ; RUN: split-file %s %t
3 ; RUN: sed -e "s|DSTROOT|%/t|g" %t/inputs.json.in > %t/inputs.json
4 ; RUN: cp -r %S/Inputs/Umbrella/Umbrella.framework %t/Frameworks/
6 // Check base filename matches.
7 ; RUN: clang-installapi --target=arm64-apple-macosx13 \
8 ; RUN: -install_name /System/Library/Frameworks/Umbrella.framework/Versions/A/Umbrella \
9 ; RUN: -ObjC -F%t/Frameworks/ %t/inputs.json \
10 ; RUN: --public-umbrella-header=SpecialUmbrella.h \
11 ; RUN: --private-umbrella-header=SpecialPrivateUmbrella.h \
12 ; RUN: -o %t/output.tbd 2>&1 | FileCheck -allow-empty %s
14 // Try missing umbrella header argument.
15 ; RUN: not clang-installapi --target=arm64-apple-macosx13 \
16 ; RUN: -install_name /System/Library/Frameworks/Umbrella.framework/Versions/A/Umbrella \
17 ; RUN: -ObjC -F%t/Frameworks/ %t/inputs.json \
18 ; RUN: --public-umbrella-header=Ignore.h \
19 ; RUN: -o %t/output.tbd 2>&1 | FileCheck %s -check-prefix=ERR
21 ; ERR: error: public umbrella header file not found in input: 'Ignore.h'
26 ;--- Frameworks/Umbrella.framework/Headers/Ignore.h
27 #error "This header should be ignored"
32 "path" : "DSTROOT/Frameworks/Umbrella.framework/Headers/AAA.h",
36 "path" : "DSTROOT/Frameworks/Umbrella.framework/Headers/SpecialUmbrella.h",
40 "path" : "DSTROOT/Frameworks/Umbrella.framework/PrivateHeaders/AAA_Private.h",
44 "path" : "DSTROOT/Frameworks/Umbrella.framework/PrivateHeaders/SpecialPrivateUmbrella.h",