llvm/test/tools/dsymutil/fat-binary-output.test
Frederic Riss e88f2f375e [dsymutil] Add (unimplemented) --flat option
dsymutil should by default generate dSYM bundles which are filesystem
hierarchies containing the debug info and an additional Info.plist.
Currently llvm-dsymutil emits raw binaries containing the debug info.
This is what we call the 'flat mode'. Add a -f/-flat option that is
supposed to enable that flat mode, but don't wire it for now, only
pass it to the tests that will need it to stay functional once we
do bundle generation by default.
This basically makes this commit NFC and removes the noise from the
actual commit that adds support for bundle generation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244269 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-06 21:05:01 +00:00

33 lines
1.3 KiB
Plaintext

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