forked from OSchip/llvm-project
88dd7c8549
The testing in merged.test is not ideal. It uses the following set of flags: `-aeWhSrnudlVgIs` and the precompiled object `trivial.obj.elf-i386`. In fact, this object, for example, does not contain versioning stuff, so specifying `-V` does not make much sense for it, so it is not really tested. Also, we want to avoid using of precompiled objects, ideally we want to use a YAML that triggers an output for each of the short options in use: ``` -a: --all -e: --headers -W: --wide -h: --file-headers, --file-header -S: --section-headers, --sections -r: --relocations -n: --notes -u: --unwind -d: --dynamic-table -l: --program-headers -V: --version-info -g: --elf-section-groups -I: --elf-hash-histogram -s: --symbols ``` Note that, for example, we do not need to have groups to test `-g`, because for a object with no groups llvm-readelf still prints "There are no section groups in this file.", but that is not always the case. E.g. for `-d` we don't print anything when we have no dynamic table, so we have to describe it in a YAML to test `-d` properly. Also, we probably want to test cases with and without `-a`(-all) option separately to be sure that we handle all options and not only the first one in the sequence. Differential revision: https://reviews.llvm.org/D86283 |
||
---|---|---|
.. | ||
UpdateTestChecks | ||
dsymutil | ||
gold | ||
llc | ||
llvm-ar | ||
llvm-as | ||
llvm-cfi-verify | ||
llvm-config | ||
llvm-cov | ||
llvm-cvtres | ||
llvm-cxxdump | ||
llvm-cxxfilt | ||
llvm-cxxmap | ||
llvm-diff | ||
llvm-dlltool | ||
llvm-dwarfdump | ||
llvm-dwp | ||
llvm-elfabi | ||
llvm-exegesis | ||
llvm-extract | ||
llvm-gsymutil | ||
llvm-ifs | ||
llvm-isel-fuzzer | ||
llvm-lib | ||
llvm-libtool-darwin | ||
llvm-link | ||
llvm-lipo | ||
llvm-lit | ||
llvm-locstats | ||
llvm-lto | ||
llvm-lto2 | ||
llvm-mc | ||
llvm-mca | ||
llvm-ml | ||
llvm-modextract | ||
llvm-mt | ||
llvm-nm | ||
llvm-objcopy | ||
llvm-objdump | ||
llvm-opt-fuzzer | ||
llvm-opt-report | ||
llvm-pdbutil | ||
llvm-profdata | ||
llvm-ranlib | ||
llvm-rc | ||
llvm-readobj | ||
llvm-size | ||
llvm-split | ||
llvm-strings | ||
llvm-symbolizer | ||
llvm-xray | ||
lto | ||
obj2yaml | ||
opt-viewer | ||
sancov | ||
sanstats | ||
split-file | ||
yaml2obj |