[llvm-size][test] Improve llvm-size testing
authorJames Henderson <jh7370@my.bristol.ac.uk>
Wed, 14 Aug 2019 10:17:34 +0000 (10:17 +0000)
committerJames Henderson <jh7370@my.bristol.ac.uk>
Wed, 14 Aug 2019 10:17:34 +0000 (10:17 +0000)
commita8eef4e5f50009f9b4387c8e617f34493549a781
tree72b4712e6e995f5c32489833e8d2acc5056b5f06
parent32f1e1a01d9ad8d00345eb005e362eedf47bb1fb
[llvm-size][test] Improve llvm-size testing

This patch significantly improves the llvm-size testing. The changes
made are:

1) Change all tests to use yaml2obj instead of assembly or pre-canned
   inputs.
2) Move the tests out of the X86 directory, since they don't need to be
   there after 1).
3) Increased test coverage.
4) Added comments to explain purpose of tests.

I haven't attempted to add test coverage for all Mach-O related code, as
I am not familiar enough with that file format to be able to.

Reviewers: grimar, MaskRay

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

llvm-svn: 368821
27 files changed:
llvm/test/tools/llvm-size/Inputs/darwin-m.o [deleted file]
llvm/test/tools/llvm-size/Inputs/darwin-m1.o [deleted file]
llvm/test/tools/llvm-size/X86/elf-sizes.test [deleted file]
llvm/test/tools/llvm-size/X86/format-berkeley-tabs.s [deleted file]
llvm/test/tools/llvm-size/X86/ignore-sections.s [deleted file]
llvm/test/tools/llvm-size/X86/lit.local.cfg [deleted file]
llvm/test/tools/llvm-size/X86/test-common.s [deleted file]
llvm/test/tools/llvm-size/archive.test [new file with mode: 0644]
llvm/test/tools/llvm-size/basic.test [deleted file]
llvm/test/tools/llvm-size/common.test [new file with mode: 0644]
llvm/test/tools/llvm-size/darwin-m.test
llvm/test/tools/llvm-size/elf-berkeley.test [new file with mode: 0644]
llvm/test/tools/llvm-size/elf-m.test [new file with mode: 0644]
llvm/test/tools/llvm-size/elf-sysv.test [new file with mode: 0644]
llvm/test/tools/llvm-size/help.test
llvm/test/tools/llvm-size/invalid-input.test [new file with mode: 0644]
llvm/test/tools/llvm-size/long-format.test [new file with mode: 0644]
llvm/test/tools/llvm-size/macho-berkeley.test [new file with mode: 0644]
llvm/test/tools/llvm-size/macho-sysv.test [new file with mode: 0644]
llvm/test/tools/llvm-size/multiple-inputs.test [new file with mode: 0644]
llvm/test/tools/llvm-size/no-input.test [new file with mode: 0644]
llvm/test/tools/llvm-size/radix.test [new file with mode: 0644]
llvm/test/tools/llvm-size/response-file.test [new file with mode: 0644]
llvm/test/tools/llvm-size/stdin.test [new file with mode: 0644]
llvm/test/tools/llvm-size/totals.test [new file with mode: 0644]
llvm/test/tools/llvm-size/unknown-format.test [new file with mode: 0644]
llvm/test/tools/llvm-size/version.test [new file with mode: 0644]