Home | History | Annotate | Download | only in test
      1 // FIXME: Support sanitizer hooks for memcmp and strcmp need
      2 // to be implemented in the sanitizer runtime for platforms other
      3 // than linux
      4 REQUIRES: linux
      5 CHECK: BINGO
      6 Done1000000: Done 1000000 runs in
      7 
      8 RUN: not LLVMFuzzer-MemcmpTest               -seed=4294967295 -runs=100000   2>&1 | FileCheck %s
      9 RUN:     LLVMFuzzer-MemcmpTest -use_memcmp=0 -seed=4294967295 -runs=1000000  2>&1 | FileCheck %s --check-prefix=Done1000000
     10 
     11 RUN: not LLVMFuzzer-StrncmpTest               -seed=2 -runs=100000   2>&1 | FileCheck %s
     12 RUN:     LLVMFuzzer-StrncmpTest -use_memcmp=0 -seed=3 -runs=1000000  2>&1 | FileCheck %s --check-prefix=Done1000000
     13 
     14 RUN: not LLVMFuzzer-StrcmpTest               -seed=4 -runs=200000   2>&1 | FileCheck %s
     15 RUN:     LLVMFuzzer-StrcmpTest -use_memcmp=0 -seed=5 -runs=1000000  2>&1 | FileCheck %s --check-prefix=Done1000000
     16 
     17 
     18 RUN: LLVMFuzzer-RepeatedMemcmp -seed=10 -runs=100000 2>&1 | FileCheck %s --check-prefix=RECOMMENDED_DICT
     19 RECOMMENDED_DICT:###### Recommended dictionary. ######
     20 RECOMMENDED_DICT-DAG: "foo"
     21 RECOMMENDED_DICT-DAG: "bar"
     22 RECOMMENDED_DICT:###### End of recommended dictionary. ######
     23 
     24