25 lines · plain
1REQUIRES: linux2 3RUN: %no_fuzzer_cpp_compiler %S/AFLDriverTest.cpp %libfuzzer_src/afl/afl_driver.cpp -o %t-AFLDriverTest4 5RUN: echo -n "abc" > %t.file36RUN: %run %t-AFLDriverTest < %t.file3 2>&1 | FileCheck %s --check-prefix=CHECK17CHECK1: __afl_persistent_loop called, Count = 10008CHECK1: LLVMFuzzerTestOneInput called; Size = 39 10RUN: %run %t-AFLDriverTest < %t.file3 -42 2>&1 | FileCheck %s --check-prefix=CHECK211CHECK2: __afl_persistent_loop called, Count = 4212CHECK2: LLVMFuzzerTestOneInput called; Size = 313 14RUN: %run %t-AFLDriverTest < %t.file3 666 2>&1 | FileCheck %s --check-prefix=CHECK315CHECK3: WARNING: using the deprecated call style16CHECK3: __afl_persistent_loop called, Count = 66617CHECK3: LLVMFuzzerTestOneInput called; Size = 318 19RUN: %run %t-AFLDriverTest %t.file3 2>&1 | FileCheck %s --check-prefix=CHECK420CHECK4: LLVMFuzzerTestOneInput called; Size = 321 22RUN: echo -n "ab" > %t.file223RUN: %run %t-AFLDriverTest %t.file2 %t.file3 2>&1 | FileCheck %s --check-prefix=CHECK524CHECK5: LLVMFuzzerTestOneInput called; Size = 225CHECK5: LLVMFuzzerTestOneInput called; Size = 3