brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 3145304 Raw
28 lines · plain
1RUN: %cpp_compiler %S/CustomMutatorTest.cpp -o %t-CustomMutatorTest2RUN: not %run %t-CustomMutatorTest 2>&1 | FileCheck %s --check-prefix=LLVMFuzzerCustomMutator3LLVMFuzzerCustomMutator: INFO: found LLVMFuzzerCustomMutator4LLVMFuzzerCustomMutator: In LLVMFuzzerCustomMutator5LLVMFuzzerCustomMutator: {{.*}} lim: 4096 {{.*}}6LLVMFuzzerCustomMutator: BINGO7 8# len_control is disabled for custom mutators by default, test that it can be enabled.9RUN: not %run %t-CustomMutatorTest -len_control=1000 2>&1 | FileCheck %s --check-prefix=LLVMFuzzerCustomMutatorWithLenControl10LLVMFuzzerCustomMutatorWithLenControl: INFO: found LLVMFuzzerCustomMutator11LLVMFuzzerCustomMutatorWithLenControl: In LLVMFuzzerCustomMutator12LLVMFuzzerCustomMutatorWithLenControl: {{.*}} lim: {{[1-9][0-9]?}} {{.*}}13LLVMFuzzerCustomMutatorWithLenControl: BINGO14 15# sanity check: verify that we do get long lines with verbose printing on16RUN: %cpp_compiler %S/CustomMutatorWithLongSequencesTest.cpp -o %t-CustomMutatorWithLongSequencesTest17RUN: not %run %t-CustomMutatorWithLongSequencesTest -verbosity=2 2>&1 | FileCheck %s --check-prefix=LLVMFuzzerCustomMutatorLongSequence18LLVMFuzzerCustomMutatorLongSequence: Flag: verbosity 219LLVMFuzzerCustomMutatorLongSequence: {{.*}} MS: {{[0-9]*}} {{(([a-zA-Z]*-){11,})}}20LLVMFuzzerCustomMutatorLongSequence: BINGO21 22# check a target that prints long mutation sequences and verifies the printed23# output is capped at 10 entries24RUN: not %run %t-CustomMutatorWithLongSequencesTest 2>&1 | FileCheck %s --check-prefix=LLVMFuzzerCustomMutatorLongSequenceTrimmed25LLVMFuzzerCustomMutatorLongSequenceTrimmed-NOT: Flag: verbosity 226LLVMFuzzerCustomMutatorLongSequenceTrimmed-NOT: {{.*}} MS: {{[0-9]*}} {{(([a-zA-Z]*-){11,})}} {{.*}}27LLVMFuzzerCustomMutatorLongSequenceTrimmed: BINGO28