35 lines · plain
1; RUN: rm -rf %t2; RUN: split-file %s %t3; RUN: mkdir -p %t4; RUN: yaml2obj %S/Inputs/macho.yaml -o %t/macho.dylib5; RUN: llvm-readtapi %t/macho.dylib -o %t/out.tbd 2>&1 | FileCheck %s --allow-empty 6; RUN: llvm-readtapi -compare %t/out.tbd %t/expected.tbd 2>&1 | FileCheck %s --allow-empty 7 8; CHECK-NOT: error9; CHECK-NOT: warning 10 11;--- expected.tbd12{13 "main_library": {14 "flags": [15 {16 "attributes": [17 "not_app_extension_safe"18 ]19 }20 ],21 "install_names": [22 {23 "name": "macho-no-exports.dylib"24 }25 ],26 "target_info": [27 {28 "min_deployment": "10.10",29 "target": "x86_64-macos"30 }31 ]32 },33 "tapi_tbd_version": 534}35