blob: c9b5f690202ee9bc9c122d65f265915eb432c616 [file] [log] [blame]
Marcos Pividori36464dd2017-02-01 22:40:45 +00001REQUIRES: posix
2
Kostya Serebryany98d592c2017-01-20 20:57:07 +00003RUN: LLVMFuzzer-EquivalenceATest -run_equivalence_server=EQUIV_TEST & export APID=$!
Kostya Serebryany3230b242017-01-23 18:44:40 +00004RUN: sleep 3
Kostya Serebryany5c76e3d2017-02-01 00:07:47 +00005RUN: not LLVMFuzzer-EquivalenceBTest -use_equivalence_server=EQUIV_TEST -max_len=4096 2>&1 | FileCheck %s
Kostya Serebryany98d592c2017-01-20 20:57:07 +00006CHECK: ERROR: libFuzzer: equivalence-mismatch. Sizes: {{.*}}; offset 2
7CHECK: SUMMARY: libFuzzer: equivalence-mismatch
8RUN: kill -9 $APID
Kostya Serebryany6d58dbb2017-01-27 22:41:30 +00009
10
11# Run EquivalenceATest against itself with a small timeout
12# to stress the signal handling and ensure that shmem doesn't mind
13# the signals.
14
15RUN: LLVMFuzzer-EquivalenceATest -timeout=1 -run_equivalence_server=EQUIV_TEST & export APID=$!
16RUN: sleep 3
17RUN: LLVMFuzzer-EquivalenceATest -timeout=1 -use_equivalence_server=EQUIV_TEST -runs=500000 2>&1
18RUN: kill -9 $APID