2019-02-08 08:41:29 +08:00
|
|
|
# Tests CrossOverTest.
|
|
|
|
# We want to make sure that the test can find the input
|
|
|
|
# ABCDEFGHIJ when given two other inputs in the seed corpus:
|
|
|
|
# ABCDE00000 and
|
|
|
|
# ZZZZZFGHIJ
|
|
|
|
#
|
|
|
|
RUN: %cpp_compiler %S/CrossOverTest.cpp -o %t-CrossOverTest
|
|
|
|
|
|
|
|
RUN: rm -rf %t-corpus
|
|
|
|
RUN: mkdir %t-corpus
|
|
|
|
RUN: echo -n ABCDE00000 > %t-corpus/A
|
|
|
|
RUN: echo -n ZZZZZFGHIJ > %t-corpus/B
|
|
|
|
|
2019-02-08 09:20:54 +08:00
|
|
|
|
2019-02-08 08:41:29 +08:00
|
|
|
RUN: not %run %t-CrossOverTest -max_len=10 -seed=1 -runs=10000000 %t-corpus
|
2019-02-08 09:20:54 +08:00
|
|
|
|
|
|
|
# Test the same thing but using -seed_inputs instead of passing the corpus dir.
|
|
|
|
RUN: not %run %t-CrossOverTest -max_len=10 -seed=1 -runs=10000000 -seed_inputs=%t-corpus/A,%t-corpus/B
|