xref: /llvm-project/llvm/test/tools/llvm-reduce/command-line-behavior.test (revision 84e888e5e418bcaf2e468730f3bf94cfc305c14d)
1# Print the help output if no arguments are specified
2# RUN: llvm-reduce --help | grep "LLVM automatic testcase reducer"
3# RUN: llvm-reduce | grep "LLVM automatic testcase reducer"
4
5# Don't require any other arguments for --print-delta-passes
6# RUN: llvm-reduce --print-delta-passes | grep "Delta passes"
7
8# Missing test input
9# RUN: not llvm-reduce --test FileCheck 2>&1 | grep "error: reduction testcase positional argument must be specified"
10
11# Missing test script
12# RUN: not llvm-reduce some-input 2>&1 | grep "error: --test option must be specified"
13