llvm-for-llvmta/test/tools/llvm-elfabi/output-target-error.test

16 lines
452 B
Plaintext
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
## Test running llvm-elfabi without specifying a valid target.
# RUN: not llvm-elfabi %s %t 2>&1 | FileCheck %s --check-prefix=MISSING
# RUN: not llvm-elfabi %s --output-target=nope %t 2>&1 | FileCheck %s --check-prefix=INVALID
--- !tapi-tbe
SoName: somelib.so
TbeVersion: 1.0
Arch: x86_64
Symbols: {}
...
# MISSING: error: no binary output target specified.
# INVALID: llvm-elfabi: for the --output-target option: Cannot find option named 'nope'!