Summary:
As pointed out in D53667, our use of hyphens in flags can be inconsistent, mixing `-` with `--`. This change makes all long style flags use `--`.
Automatically changed via:
```
find test/tools/llvm-objcopy/ELF -type f | xargs sed -i 's/ -\([a-zA-Z]\{3\}\)/ --\1/g'
```
Two false positives were manually fixed/reverted.
Reviewers: jhenderson, espindola, alexshap
Reviewed By: jhenderson
Subscribers: emaste, javed.absar, arichardson, fedor.sergeev, jakehehrlich, llvm-commits
Differential Revision: https://reviews.llvm.org/D56513
llvm-svn: 350944
20 lines
1.0 KiB
Plaintext
20 lines
1.0 KiB
Plaintext
# RUN: llvm-objcopy -help | FileCheck --check-prefix=OBJCOPY-USAGE %s
|
|
# RUN: llvm-objcopy --help | FileCheck --check-prefix=OBJCOPY-USAGE %s
|
|
# RUN: not llvm-objcopy 2>&1 | FileCheck --check-prefix=OBJCOPY-USAGE %s
|
|
# RUN: not llvm-objcopy -abcabc 2>&1 | FileCheck --check-prefix=UNKNOWN-ARG %s
|
|
# RUN: not llvm-objcopy --abcabc 2>&1 | FileCheck --check-prefix=UNKNOWN-ARG %s
|
|
# RUN: not llvm-objcopy --strip-debug 2>&1 | FileCheck %s --check-prefix=NO-INPUT-FILES
|
|
|
|
# RUN: llvm-strip -help | FileCheck --check-prefix=STRIP-USAGE %s
|
|
# RUN: llvm-strip --help | FileCheck --check-prefix=STRIP-USAGE %s
|
|
# RUN: not llvm-strip 2>&1 | FileCheck --check-prefix=STRIP-USAGE %s
|
|
# RUN: not llvm-strip -abcabc 2>&1 | FileCheck --check-prefix=UNKNOWN-ARG %s
|
|
# RUN: not llvm-strip --abcabc 2>&1 | FileCheck --check-prefix=UNKNOWN-ARG %s
|
|
# RUN: not llvm-strip --strip-debug 2>&1 | FileCheck %s --check-prefix=NO-INPUT-FILES
|
|
|
|
|
|
# OBJCOPY-USAGE: USAGE: llvm-objcopy
|
|
# STRIP-USAGE: USAGE: llvm-strip
|
|
# UNKNOWN-ARG: unknown argument '{{-+}}abcabc'
|
|
# NO-INPUT-FILES: No input file specified
|