Add a test for reading lld-generated build-ids
authorPavel Labath <labath@google.com>
Fri, 29 Jun 2018 12:15:54 +0000 (12:15 +0000)
committerPavel Labath <labath@google.com>
Fri, 29 Jun 2018 12:15:54 +0000 (12:15 +0000)
commit62a7f80af7fc7cb0856fe72537817a721c1dbc97
tree6034e6ed6bdfe1203dba1b7e0e7c9289a99508c8
parentda82da8a20d12efe3955f4f1ea4a0d02d9acd919
Add a test for reading lld-generated build-ids

Summary:
This test makes sure we are able to read the shorter build-ids which are
generated by lld.

To make this work, I've extended lldb-test to print the UUID of the
loaded object file. I've renamed the lldb-test subcommand from
"module-sections" to "object-file" to reflect the fact it prints more
than just the sections.

I've also added the module Architecture to the output, so we could avoid
printing the entire symbol file information just to get the ArchSpec
details in the lc_version_min test (which was also the only test in it's
folder not using the module-sections command).

Reviewers: aprantl, zturner

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D48646

llvm-svn: 335967
lldb/lit/Modules/build-id-case.yaml
lldb/lit/Modules/compressed-sections.yaml
lldb/lit/Modules/elf-duplicate-section.yaml
lldb/lit/Modules/elf-section-types.yaml
lldb/lit/Modules/lc_version_min.yaml
lldb/lit/Modules/short-build-id.yaml [new file with mode: 0644]
lldb/tools/lldb-test/lldb-test.cpp