aboutsummaryrefslogtreecommitdiff
path: root/test/fuzzer/fuzzer-mutationstats.test
blob: cb75b36375ec1807428bdfc0772d866ca6baa28a (plain)
1
2
3
4
5
6
7
8
9
10
RUN: %cpp_compiler %S/SimpleTest.cpp -o %t-MutationStatsTest
RUN: not %run %t-MutationStatsTest -print_mutation_stats=1 2>&1 | FileCheck %s --check-prefix=STAT

# Ensures there are some non-zero values in the usefulness percentages printed.
STAT: stat::mutation_usefulness:   {{[0-9]+\.[0-9]+}}

# Weighted mutations only trigger after first 10,000 runs, hence flag.
RUN: not %run %t-MutationStatsTest -use_weighted_mutations=1 -seed=1 -runs=100000 2>&1 | FileCheck %s --check-prefix=WEIGHTED

WEIGHTED: BINGO