1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

[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
This commit is contained in:
Alexander Shaposhnikov 2020-09-07 18:29:48 -07:00
parent afd0a35752
commit 60f196bf71
4 changed files with 15 additions and 11 deletions

View File

@ -1,4 +0,0 @@
# RUN: llvm-objcopy --version | FileCheck %s
# RUN: llvm-objcopy -V | FileCheck %s
# CHECK: {{ version }}

View File

@ -1,5 +0,0 @@
# RUN: llvm-strip --version | FileCheck %s
# RUN: llvm-strip -V | FileCheck %s
# CHECK-DAG: {{ version }}
# CHECK-DAG: GNU strip

View File

@ -1,2 +0,0 @@
# RUN: llvm-install-name-tool --version | FileCheck %s
# CHECK: {{ version }}

View File

@ -0,0 +1,15 @@
# RUN: llvm-objcopy --version | FileCheck --check-prefix=OBJCOPY %s
# RUN: llvm-objcopy -V | FileCheck --check-prefix=OBJCOPY %s
# RUN: llvm-strip --version | FileCheck --check-prefix=STRIP %s
# RUN: llvm-strip -V | FileCheck --check-prefix=STRIP %s
# RUN: llvm-install-name-tool --version | FileCheck %s
# OBJCOPY-DAG: {{ version }}
# OBJCOPY-DAG: GNU objcopy
# STRIP-DAG: {{ version }}
# STRIP-DAG: GNU strip
# CHECK: {{ version }}