2021-04-02 11:55:11 +08:00
|
|
|
## Test running llvm-ifs without specifying a valid target.
|
2020-09-29 13:10:54 +08:00
|
|
|
|
2021-04-02 11:55:11 +08:00
|
|
|
# RUN: not llvm-ifs --output=%t %s 2>&1 | FileCheck %s --check-prefix=MISSING
|
|
|
|
# RUN: not llvm-ifs --output-format=nope --output=%t %s 2>&1 | FileCheck %s --check-prefix=INVALID
|
2020-09-29 13:10:54 +08:00
|
|
|
|
2021-04-01 07:48:56 +08:00
|
|
|
--- !ifs-v1
|
2020-09-29 13:10:54 +08:00
|
|
|
SoName: somelib.so
|
2021-04-08 06:50:12 +08:00
|
|
|
IfsVersion: 3.0
|
2021-04-01 07:48:56 +08:00
|
|
|
Target: { ObjectFormat: ELF, Arch: x86_64, Endianness: little, BitWidth: 64 }
|
|
|
|
Symbols: []
|
2020-09-29 13:10:54 +08:00
|
|
|
...
|
|
|
|
|
2021-12-03 15:25:38 +08:00
|
|
|
# MISSING: error: at least one output should be specified.
|
2020-09-29 13:10:54 +08:00
|
|
|
|
2021-04-02 11:55:11 +08:00
|
|
|
# INVALID: {{llvm-ifs(\.exe)?}}: for the --output-format option: Cannot find option named 'nope'!
|