Skip to content

Commit 9b3e571

Browse files
committed
[InstallAPI] Add test to validate cc1 arg forwading
1 parent 515d3f7 commit 9b3e571

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
; RUN: rm -rf %t
2+
; RUN: split-file %s %t
3+
; RUN: sed -e "s|DSTROOT|%/t|g" %t/input.json.in > %t/input.json
4+
5+
; RUN: mkdir -p %t/System/Library/Frameworks
6+
; RUN: cp -r %S/Inputs/Simple/Simple.framework %t/System/Library/Frameworks/
7+
; RUN: yaml2obj %S/Inputs/Simple/Simple.yaml -o %t/Simple
8+
; RUN: mkdir -p %t/usr/include/after
9+
10+
; RUN: clang-installapi -target x86_64-apple-macosx10.12 \
11+
; RUN: -install_name /System/Library/Frameworks/Simple.framework/Versions/A/Simple \
12+
; RUN: -current_version 1.2.3 -compatibility_version 1 -o %t/Simple.tbd \
13+
; RUN: -F %t/System/Library/Frameworks \
14+
; RUN: --verify-against=%t/Simple --verify-mode=ErrorsOnly \
15+
; RUN: %t/input.json -idirafter %t/usr/include/after -v 2>&1 | FileCheck %s
16+
17+
; CHECK: "-idirafter" {{.*}}/usr/include/after"
18+
; CHECK: #include "..." search starts here:
19+
; CHECK: #include <...> search starts here:
20+
; CHECK: usr/include/after
21+
; CHECK-NEXT: End of search list.
22+
23+
;--- input.json.in
24+
{
25+
"version" : "3",
26+
"headers" : [
27+
{
28+
"type" : "public",
29+
"path" : "DSTROOT/System/Library/Frameworks/Simple.framework/Headers/Basic.h"
30+
}
31+
]
32+
}

0 commit comments

Comments
 (0)