1 RUN: dsymutil -f -verbose -no-output %p/Inputs/fat-test.dylib -oso-prepend-path %p | FileCheck %s
3 This test doesn't produce any filesytstem output, we just look at the verbose
6 For each arch in the binary, check that we emit the right triple with the right
7 file and the right symbol inside it (each slice has a different symbol, so that
8 means that the logic is looking at the right file slice too).
10 After the link of each architecture, check that lipo is correctly invoked to
11 generate the fat output binary.
13 CHECK: triple: 'x86_64-apple-darwin'
14 CHECK: - filename: {{'?}}[[INPUTS_PATH:.*]]fat-test.o
15 CHECK: DW_AT_name{{.*}} "x86_64_var"
17 CHECK: triple: 'i386-apple-darwin'
18 CHECK: - filename: {{'?}}[[INPUTS_PATH]]fat-test.o
19 CHECK: DW_AT_name{{.*}} "i386_var"
21 CHECK: triple: 'x86_64h-apple-darwin'
22 CHECK: - filename: {{'?}}[[INPUTS_PATH]]fat-test.o
23 CHECK: DW_AT_name{{.*}} "x86_64h_var"
26 CHECK-NEXT: lipo -create
27 CHECK-SAME [[TMP_PATH:.*?]]fat-test.dylib.tmp{{......}}.dwarf [[TMP_PATH]]fat-test.dylib.tmp{{......}}.dwarf [[TMP_PATH]]fat-test.dylib.tmp{{......}}.dwarf
28 CHECK-SAME: -segalign x86_64 20 -segalign i386 20 -segalign x86_64h 20
29 CHECK-SAME: -output [[INPUTS_PATH]]fat-test.dylib.dwarf