You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
752 B
21 lines
752 B
# Tests CrossOver CopyPartOf.
|
|
# We want to make sure that the test can find the input
|
|
# ABCDEFGHIJ when given two other inputs in the seed corpus:
|
|
# ABCDE00HIJ and
|
|
# (Z) FG
|
|
#
|
|
RUN: %cpp_compiler %S/CrossOverTest.cpp -o %t-CrossOverTest
|
|
|
|
RUN: rm -rf %t-corpus
|
|
RUN: mkdir %t-corpus
|
|
RUN: echo -n ABCDE00HIJ > %t-corpus/A
|
|
RUN: echo -n ZFG > %t-corpus/B
|
|
|
|
|
|
RUN: not %run %t-CrossOverTest -mutate_depth=1 -max_len=1024 -reduce_inputs=0 -seed=1 -runs=10000000 %t-corpus 2>&1 | FileCheck %s
|
|
|
|
# Test the same thing but using -seed_inputs instead of passing the corpus dir.
|
|
RUN: 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 %s
|
|
|
|
CHECK: MS: 1 CrossOver-
|