1 RUN: %cpp_compiler %S/FlagsTest.cpp -o %t-LLVMFuzzer-FlagsTest
2 RUN: not %t-LLVMFuzzer-FlagsTest -foo_bar=1 2>&1 | FileCheck %s --check-prefix=FOO_BAR
3 FOO_BAR: WARNING: unrecognized flag '-foo_bar=1'; use -help=1 to list all flags
6 RUN: not %t-LLVMFuzzer-FlagsTest -runs=10 --max_len=100 2>&1 | FileCheck %s --check-prefix=DASH_DASH
7 DASH_DASH: WARNING: did you mean '-max_len=100' (single dash)?
8 DASH_DASH: INFO: A corpus is not provided, starting from an empty corpus
10 RUN: %t-LLVMFuzzer-FlagsTest -help=1 2>&1 | FileCheck %s --check-prefix=NO_INTERNAL
11 NO_INTERNAL-NOT: internal flag
13 RUN: not %t-LLVMFuzzer-FlagsTest --foo-bar -runs=10 -ignore_remaining_args=1 --baz -help=1 test 2>&1 | FileCheck %s --check-prefix=PASSTHRU
14 PASSTHRU: BINGO --foo-bar --baz -help=1 test
16 RUN: mkdir -p %t/T0 %t/T1
17 RUN: touch %t/T1/empty
18 RUN: not %t-LLVMFuzzer-FlagsTest --foo-bar -merge=1 %t/T0 %t/T1 -ignore_remaining_args=1 --baz -help=1 test 2>&1 | FileCheck %s --check-prefix=PASSTHRU-MERGE
19 PASSTHRU-MERGE: BINGO --foo-bar --baz -help=1 test