xref: /llvm-project/compiler-rt/test/fuzzer/mutation-graph.test (revision 1bb1eac6b177739429e78703b265e7546792fd64)
1REQUIRES: linux, x86_64
2RUN: %cpp_compiler %S/SimpleTest.cpp -o %t-SimpleTest
3
4RUN: rm -rf %t-SimpleTestGraph
5
6RUN: not %run %t-SimpleTest -seed=1 -max_len=3 -mutation_graph_file=%t-SimpleTestGraph 2>&1 | FileCheck %s
7CHECK: BINGO
8
9RUN: cat %t-SimpleTestGraph | FileCheck %s --check-prefix=GRAPH
10
11# A vertex and edge that correspond to the discovery of "H"
12GRAPH: "7cf184f4c67ad58283ecb19349720b0cae756829"
13GRAPH: {{.*}} -> "7cf184f4c67ad58283ecb19349720b0cae756829" [label="{{.*}}"];
14
15# A vertex and edge that correspond to the discovery of "Hi"
16GRAPH: "94dd9e08c129c785f7f256e82fbe0a30e6d1ae40"
17GRAPH: {{.*}} -> "94dd9e08c129c785f7f256e82fbe0a30e6d1ae40" [label="{{.*}}"];
18