summaryrefslogtreecommitdiff
path: root/test/fuzzer/standalone.test
blob: e6483703f966112bd5f77b7bf91f62e815ef74aa (plain)
1
2
3
4
5
6
7
8
RUN: %no_fuzzer_c_compiler %libfuzzer_src/standalone/StandaloneFuzzTargetMain.c -c -o %t_1.o
RUN: %no_fuzzer_cpp_compiler %S/InitializeTest.cpp -c -o %t_2.o

RUN: %no_fuzzer_cpp_compiler %t_1.o %t_2.o -o %t-StandaloneInitializeTest
RUN: %t-StandaloneInitializeTest %S/hi.txt %S/dict1.txt 2>&1 | FileCheck %s
CHECK: StandaloneFuzzTargetMain: running 2 inputs
CHECK: Done:    {{.*}}hi.txt: (3 bytes)
CHECK: Done:    {{.*}}dict1.txt: (61 bytes)