xref: /llvm-project/llvm/test/tools/llvm-readtapi/compare-rpaths.test (revision 1a0d6992aeeaff7a70adfa5079fc9c64ef156b48)
1; RUN: rm -rf %t
2; RUN: split-file %s %t
3; RUN: not llvm-readtapi --compare %t/missing_rpath.tbd  %t/rpaths.tbd 2>&1 | FileCheck %s
4
5; CHECK: < {{.*}}missing_rpath.tbd
6; CHECK: > {{.*}}rpaths.tbd
7
8; CHECK: Run Path Search Paths
9; CHECK-NEXT:         x86_64-apple-macos13
10; CHECK-NEXT:                 > /usr/lib/swift
11; CHECK-NEXT:                 > @loader_path/../../../
12; CHECK-NEXT:         arm64-apple-macos13
13; CHECK-NEXT:                 > /usr/lib/swift
14; CHECK-NEXT:                 > @loader_path/../../../
15
16//--- missing_rpath.tbd
17{"main_library":{"exported_symbols":[{"text":{"global":["_foo"]}}],"flags":[{"attributes":["not_app_extension_safe"]}],"install_names":[{"name":"@rpath/libFake.dylib"}],"target_info":[{"min_deployment":"13","target":"x86_64-macos"},{"min_deployment":"13","target":"arm64-macos"}]},"tapi_tbd_version":5}
18
19//--- rpaths.tbd
20{"main_library":{"exported_symbols":[{"text":{"global":["_foo"]}}],"rpaths": [{"paths": [ "@loader_path/../../../", "/usr/lib/swift"]}], "flags":[{"attributes":["not_app_extension_safe"]}],"install_names":[{"name":"@rpath/libFake.dylib"}],"target_info":[{"min_deployment":"13","target":"x86_64-macos"},{"min_deployment":"13","target":"arm64-macos"}]},"tapi_tbd_version":5}
21