2017-08-04 19:19:45 +02:00
|
|
|
RUN: %cpp_compiler %S/SimpleTest.cpp -o %t-LLVMFuzzer-SimpleTest
|
|
|
|
|
2016-06-03 20:05:22 +02:00
|
|
|
RUN: rm -rf %t/SUB1
|
|
|
|
RUN: mkdir -p %t/SUB1/SUB2/SUB3
|
|
|
|
RUN: echo a > %t/SUB1/a
|
|
|
|
RUN: echo b > %t/SUB1/SUB2/b
|
|
|
|
RUN: echo c > %t/SUB1/SUB2/SUB3/c
|
2017-08-04 19:19:45 +02:00
|
|
|
RUN: %t-LLVMFuzzer-SimpleTest %t/SUB1 -runs=0 2>&1 | FileCheck %s --check-prefix=SUBDIRS
|
2016-06-03 20:05:22 +02:00
|
|
|
SUBDIRS: READ units: 3
|
2017-06-16 00:43:40 +02:00
|
|
|
RUN: echo -n zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz > %t/SUB1/f64
|
|
|
|
RUN: cat %t/SUB1/f64 %t/SUB1/f64 %t/SUB1/f64 %t/SUB1/f64 > %t/SUB1/f256
|
|
|
|
RUN: cat %t/SUB1/f256 %t/SUB1/f256 %t/SUB1/f256 %t/SUB1/f256 > %t/SUB1/f1024
|
|
|
|
RUN: cat %t/SUB1/f1024 %t/SUB1/f1024 %t/SUB1/f1024 %t/SUB1/f1024 > %t/SUB1/f4096
|
|
|
|
RUN: cat %t/SUB1/f4096 %t/SUB1/f4096 > %t/SUB1/f8192
|
2017-08-04 19:19:45 +02:00
|
|
|
RUN: %t-LLVMFuzzer-SimpleTest %t/SUB1 -runs=0 2>&1 | FileCheck %s --check-prefix=LONG
|
2017-06-16 00:43:40 +02:00
|
|
|
LONG: INFO: -max_len is not provided; libFuzzer will not generate inputs larger than 8192 bytes
|
2016-06-03 20:05:22 +02:00
|
|
|
RUN: rm -rf %t/SUB1
|
|
|
|
|
2017-08-04 19:19:45 +02:00
|
|
|
RUN: not %t-LLVMFuzzer-SimpleTest NONEXISTENT_DIR 2>&1 | FileCheck %s --check-prefix=NONEXISTENT_DIR
|
2016-06-03 20:05:22 +02:00
|
|
|
NONEXISTENT_DIR: No such directory: NONEXISTENT_DIR; exiting
|
|
|
|
|