summaryrefslogtreecommitdiff
path: root/share/spack/qa/bashcov
blob: 58fa4fe0d05939fea07e992144bb267968a63fc0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
#
# This script acts like bash but runs kcov on the input script. We use it
# to get coverage for Spack's bash scripts.
#

if [ -z "$SPACK_ROOT" ]; then
    echo "ERROR: SPACK_ROOT was not set!"
    exit 1
fi

kcov "$SPACK_ROOT/coverage" "$@"