brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 46b86b0 Raw
33 lines · plain
1RUN: dsymutil -f -verbose -no-output %p/Inputs/fat-test.dylib -oso-prepend-path %p | FileCheck %s2 3RUN: dsymutil --linker parallel -f -verbose -no-output %p/Inputs/fat-test.dylib -oso-prepend-path %p | FileCheck %s4 5This test doesn't produce any filesytstem output, we just look at the verbose6log output.7 8For each arch in the binary, check that we emit the right triple with the right9file and the right symbol inside it (each slice has a different symbol, so that10means that the logic is looking at the right file slice too).11 12After the link of each architecture, check that lipo is correctly invoked to13generate the fat output binary.14 15CHECK: triple:          'x86_64-apple-darwin'16CHECK:   - filename:        {{'?}}[[INPUTS_PATH:.*]]fat-test.o17CHECK:   DW_AT_name{{.*}} "x86_64_var"18 19CHECK: triple:          'i386-apple-darwin'20CHECK:   - filename:        {{'?}}[[INPUTS_PATH]]fat-test.o21CHECK:   DW_AT_name{{.*}} "i386_var"22 23CHECK: triple:          'x86_64h-apple-darwin'24CHECK:   - filename:        {{'?}}[[INPUTS_PATH]]fat-test.o25CHECK:   DW_AT_name{{.*}} "x86_64h_var"26 27CHECK: Running lipo28CHECK-NEXT: lipo -create29CHECK-SAME  [[TMP_PATH:.*?]]fat-test.dylib.tmp{{......}}.dwarf [[TMP_PATH]]fat-test.dylib.tmp{{......}}.dwarf [[TMP_PATH]]fat-test.dylib.tmp{{......}}.dwarf30CHECK-SAME: -segalign x86_64 20 -segalign i386 20 -segalign x86_64h 2031CHECK-SAME: -output [[INPUTS_PATH]]fat-test.dylib.dwarf32 33