xref: /llvm-project/compiler-rt/test/fuzzer/cross_over.test (revision 17dde371e773d0409cd010ade1f3f3376973d16c)
1# For IOS, we fail to permute the run lines properly (rdar://99889376)
2XFAIL: ios && !iossim
3# Tests CrossOverTest.
4# We want to make sure that the test can find the input
5# ABCDEFGHIJ when given two other inputs in the seed corpus:
6# ABCDE00000 and
7# ZZZZZFGHIJ
8#
9RUN: %cpp_compiler %S/CrossOverTest.cpp -o %t-CrossOverTest
10
11RUN: rm -rf %t-corpus
12RUN: mkdir %t-corpus
13RUN: echo -n ABCDE00000 > %t-corpus/A
14RUN: echo -n ZZZZZFGHIJ > %t-corpus/B
15
16
17RUN: not %run %t-CrossOverTest -max_len=10 -reduce_inputs=0 -seed=1 -runs=10000000 %t-corpus
18
19# Test the same thing but using -seed_inputs instead of passing the corpus dir.
20RUN: not %run %t-CrossOverTest -max_len=10 -reduce_inputs=0 -seed=1 -runs=10000000 -seed_inputs=%t-corpus/A,%t-corpus/B
21