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" "$@"