2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2017 Red Hat, Inc. All Rights Reserved.
5 # Compare test failures across runs
7 # Takes multiple "results" files as arguments, comprised of the
8 # stdout from a ./check run, each containing a Failures: line.
10 # Outputs a table of failures for comparison across runs
23 # ALLFAILURES: A B C D E F G
24 # THESEFAILURES: A C D G
26 # We want to print the header (ALLFAILURES) and then
27 # if a run didn't fail a particular test, print spaces instead
29 # All tests that failed in any run, all on one line, unique
30 ALLFAILURES=`grep -h ^Failures: $* \
35 | sed -e "s/^Failures: //g"`
40 echo $ALLFAILURES | sed -e "s/./-/g"
44 THESEFAILURES=`grep ^Failures: $FILE | filter_names`
45 for FAILURE in $ALLFAILURES; do
46 CELL=`echo $THESEFAILURES \
47 | grep -wo "$FAILURE" || echo $FAILURE | sed -e "s/./ /g"`