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