1#
2# Test framework and SDK search paths.
3#   myFrameworks is not an absolute path, so it should not by found in SDK
4#   /Custom/Frameworks should be found in SDK
5#   /opt/Frameworks should not be found in SDK
6#   /System/Library/Frameworks is implicit and should be in SDK
7#
8# RUN: ld64.lld.darwinold -arch x86_64 -r -test_file_usage -v \
9# RUN:        -path_exists myFrameworks \
10# RUN:        -path_exists myFrameworks/my.framework/my \
11# RUN:        -path_exists /opt/Frameworks \
12# RUN:        -path_exists /opt/Frameworks/other.framework/other \
13# RUN:        -path_exists /Custom/Frameworks \
14# RUN:        -path_exists /Custom/Frameworks/Bar.framework/Bar \
15# RUN:        -path_exists /System/Library/Frameworks \
16# RUN:        -path_exists /System/Library/Frameworks/Foo.framework/Foo \
17# RUN:        -path_exists /SDK/myFrameworks \
18# RUN:        -path_exists /SDK/myFrameworks/my.framework/my \
19# RUN:        -path_exists /SDK/Custom/Frameworks \
20# RUN:        -path_exists /SDK/Custom/Frameworks/Bar.framework/Bar \
21# RUN:        -path_exists /SDK/System/Library/Frameworks \
22# RUN:        -path_exists /SDK/System/Library/Frameworks/Foo.framework/Foo \
23# RUN:        -syslibroot /SDK \
24# RUN:        -FmyFrameworks \
25# RUN:        -F/Custom/Frameworks \
26# RUN:        -F/opt/Frameworks \
27# RUN:        -framework my \
28# RUN:        -framework Bar \
29# RUN:        -framework Foo \
30# RUN:        -framework other \
31# RUN: 2>&1 | FileCheck %s
32
33# CHECK:        Framework search paths:
34# CHECK-NEXT:     myFrameworks
35# CHECK-NEXT:     /SDK/Custom/Frameworks
36# CHECK-NEXT:     /opt/Frameworks
37# CHECK-NEXT:     /SDK/System/Library/Frameworks
38# CHECK: Found framework myFrameworks/my.framework/my
39# CHECK: Found framework /SDK/Custom/Frameworks/Bar.framework/Bar
40# CHECK: Found framework /SDK/System/Library/Frameworks/Foo.framework/Foo
41# CHECK: Found framework /opt/Frameworks/other.framework/other
42