[llvm-objcopy] Consolidate and unify version tests
authorAlexander Shaposhnikov <alexshap@fb.com>
Tue, 8 Sep 2020 01:29:48 +0000 (18:29 -0700)
committerAlexander Shaposhnikov <alexshap@fb.com>
Tue, 8 Sep 2020 01:44:32 +0000 (18:44 -0700)
commit10af5bad443dd15b79876fbad66d836ab9e9a4ed
treeaf7a9e8ca5ddad200907bd364d3c7bd812aa4cb2
parent4536c6acb3809eaadc836f24f091db1b50b82af9
[llvm-objcopy] Consolidate and unify version tests

In this diff the tests which verify version printing functionality are refactored.
Since they are not specific to a particular format we move them into tool-version.test
and slightly unify (similarly to tool-name.test and tool-help-message.test).

Test plan: make check-all

Differential revision: https://reviews.llvm.org/D87211
llvm/test/tools/llvm-objcopy/ELF/objcopy-version.test [deleted file]
llvm/test/tools/llvm-objcopy/ELF/strip-version.test [deleted file]
llvm/test/tools/llvm-objcopy/MachO/install-name-tool-version.test [deleted file]
llvm/test/tools/llvm-objcopy/tool-version.test [new file with mode: 0644]