Kostya Serebryany | 98d592c | 2017-01-20 20:57:07 +0000 | [diff] [blame] | 1 | RUN: LLVMFuzzer-EquivalenceATest -run_equivalence_server=EQUIV_TEST & export APID=$! |
Kostya Serebryany | 3230b24 | 2017-01-23 18:44:40 +0000 | [diff] [blame] | 2 | RUN: sleep 3 |
Kostya Serebryany | 5c76e3d | 2017-02-01 00:07:47 +0000 | [diff] [blame^] | 3 | RUN: not LLVMFuzzer-EquivalenceBTest -use_equivalence_server=EQUIV_TEST -max_len=4096 2>&1 | FileCheck %s |
Kostya Serebryany | 98d592c | 2017-01-20 20:57:07 +0000 | [diff] [blame] | 4 | CHECK: ERROR: libFuzzer: equivalence-mismatch. Sizes: {{.*}}; offset 2 |
| 5 | CHECK: SUMMARY: libFuzzer: equivalence-mismatch |
| 6 | RUN: kill -9 $APID |
Kostya Serebryany | 6d58dbb | 2017-01-27 22:41:30 +0000 | [diff] [blame] | 7 | |
| 8 | |
| 9 | # Run EquivalenceATest against itself with a small timeout |
| 10 | # to stress the signal handling and ensure that shmem doesn't mind |
| 11 | # the signals. |
| 12 | |
| 13 | RUN: LLVMFuzzer-EquivalenceATest -timeout=1 -run_equivalence_server=EQUIV_TEST & export APID=$! |
| 14 | RUN: sleep 3 |
| 15 | RUN: LLVMFuzzer-EquivalenceATest -timeout=1 -use_equivalence_server=EQUIV_TEST -runs=500000 2>&1 |
| 16 | RUN: kill -9 $APID |