brintos

brintos / llvm-project-archived public Read only

0
0
Text · 752 B · cb7d4fa Raw
21 lines · plain
1# Tests CrossOver InsertPartOf.2# We want to make sure that the test can find the input3# ABCDEFGHIJ when given two other inputs in the seed corpus:4#    ABCDE  HIJ and5# (Z)     FG6#7RUN: %cpp_compiler %S/CrossOverTest.cpp -o %t-CrossOverTest8 9RUN: rm -rf %t-corpus10RUN: mkdir %t-corpus11RUN: echo -n ABCDEHIJ > %t-corpus/A12RUN: echo -n ZFG > %t-corpus/B13 14 15RUN: not %run %t-CrossOverTest -mutate_depth=1 -max_len=1024 -reduce_inputs=0 -seed=1 -runs=10000000 %t-corpus 2>&1 | FileCheck %s16 17# Test the same thing but using -seed_inputs instead of passing the corpus dir.18RUN: not %run %t-CrossOverTest -mutate_depth=1 -max_len=1024 -reduce_inputs=0 -seed=1 -runs=10000000 -seed_inputs=%t-corpus/A,%t-corpus/B 2>&1 | FileCheck %s19 20CHECK: MS: 1 CrossOver-21