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