mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
[libFuzzer] split one test into several
llvm-svn: 310106
This commit is contained in:
parent
5db0c30b42
commit
9cb37f0db2
@ -1,24 +0,0 @@
|
||||
// FIXME: Support for sanitizer hooks for memcmp and strcmp needs to
|
||||
// be implemented in the sanitizer runtime for this test
|
||||
UNSUPPORTED: windows
|
||||
RUN: %cpp_compiler %S/MemcmpTest.cpp -o %t-LLVMFuzzer-MemcmpTest
|
||||
RUN: %cpp_compiler %S/StrncmpTest.cpp -o %t-LLVMFuzzer-StrncmpTest
|
||||
RUN: %cpp_compiler %S/StrcmpTest.cpp -o %t-LLVMFuzzer-StrcmpTest
|
||||
RUN: %cpp_compiler %S/StrstrTest.cpp -o %t-LLVMFuzzer-StrstrTest
|
||||
RUN: %cpp_compiler %S/Memcmp64BytesTest.cpp -o %t-LLVMFuzzer-Memcmp64BytesTest
|
||||
RUN: %cpp_compiler %S/RepeatedMemcmp.cpp -o %t-LLVMFuzzer-RepeatedMemcmp
|
||||
|
||||
CHECK: BINGO
|
||||
|
||||
RUN: not %t-LLVMFuzzer-MemcmpTest -seed=1 -runs=10000000 2>&1 | FileCheck %s
|
||||
RUN: not %t-LLVMFuzzer-StrncmpTest -seed=2 -runs=2000000 2>&1 | FileCheck %s
|
||||
RUN: not %t-LLVMFuzzer-StrcmpTest -seed=1 -runs=2000000 2>&1 | FileCheck %s
|
||||
RUN: not %t-LLVMFuzzer-StrstrTest -seed=1 -runs=2000000 2>&1 | FileCheck %s
|
||||
|
||||
RUN: not %t-LLVMFuzzer-Memcmp64BytesTest -seed=1 -runs=1000000 2>&1 | FileCheck %s
|
||||
|
||||
RUN: %t-LLVMFuzzer-RepeatedMemcmp -seed=11 -runs=100000 -max_len=20 2>&1 | FileCheck %s --check-prefix=RECOMMENDED_DICT
|
||||
RECOMMENDED_DICT:###### Recommended dictionary. ######
|
||||
RECOMMENDED_DICT-DAG: "foo"
|
||||
RECOMMENDED_DICT-DAG: "bar"
|
||||
RECOMMENDED_DICT:###### End of recommended dictionary. ######
|
3
lib/Fuzzer/test/memcmp.test
Normal file
3
lib/Fuzzer/test/memcmp.test
Normal file
@ -0,0 +1,3 @@
|
||||
RUN: %cpp_compiler %S/MemcmpTest.cpp -o %t-LLVMFuzzer-MemcmpTest
|
||||
RUN: not %t-LLVMFuzzer-MemcmpTest -seed=1 -runs=10000000 2>&1 | FileCheck %s
|
||||
CHECK: BINGO
|
3
lib/Fuzzer/test/memcmp64.test
Normal file
3
lib/Fuzzer/test/memcmp64.test
Normal file
@ -0,0 +1,3 @@
|
||||
RUN: %cpp_compiler %S/Memcmp64BytesTest.cpp -o %t-LLVMFuzzer-Memcmp64BytesTest
|
||||
RUN: not %t-LLVMFuzzer-Memcmp64BytesTest -seed=1 -runs=1000000 2>&1 | FileCheck %s
|
||||
CHECK: BINGO
|
6
lib/Fuzzer/test/recommended-dictionary.test
Normal file
6
lib/Fuzzer/test/recommended-dictionary.test
Normal file
@ -0,0 +1,6 @@
|
||||
RUN: %cpp_compiler %S/RepeatedMemcmp.cpp -o %t-LLVMFuzzer-RepeatedMemcmp
|
||||
RUN: %t-LLVMFuzzer-RepeatedMemcmp -seed=11 -runs=100000 -max_len=20 2>&1 | FileCheck %s --check-prefix=RECOMMENDED_DICT
|
||||
RECOMMENDED_DICT:###### Recommended dictionary. ######
|
||||
RECOMMENDED_DICT-DAG: "foo"
|
||||
RECOMMENDED_DICT-DAG: "bar"
|
||||
RECOMMENDED_DICT:###### End of recommended dictionary. ######
|
4
lib/Fuzzer/test/strcmp.test
Normal file
4
lib/Fuzzer/test/strcmp.test
Normal file
@ -0,0 +1,4 @@
|
||||
RUN: %cpp_compiler %S/StrcmpTest.cpp -o %t-LLVMFuzzer-StrcmpTest
|
||||
RUN: not %t-LLVMFuzzer-StrcmpTest -seed=1 -runs=2000000 2>&1 | FileCheck %s
|
||||
CHECK: BINGO
|
||||
|
4
lib/Fuzzer/test/strncmp.test
Normal file
4
lib/Fuzzer/test/strncmp.test
Normal file
@ -0,0 +1,4 @@
|
||||
RUN: %cpp_compiler %S/StrncmpTest.cpp -o %t-LLVMFuzzer-StrncmpTest
|
||||
RUN: not %t-LLVMFuzzer-StrncmpTest -seed=2 -runs=2000000 2>&1 | FileCheck %s
|
||||
CHECK: BINGO
|
||||
|
4
lib/Fuzzer/test/strstr.test
Normal file
4
lib/Fuzzer/test/strstr.test
Normal file
@ -0,0 +1,4 @@
|
||||
RUN: %cpp_compiler %S/StrstrTest.cpp -o %t-LLVMFuzzer-StrstrTest
|
||||
RUN: not %t-LLVMFuzzer-StrstrTest -seed=1 -runs=2000000 2>&1 | FileCheck %s
|
||||
CHECK: BINGO
|
||||
|
Loading…
Reference in New Issue
Block a user