diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2016-12-30 13:53:30 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-12-30 17:18:19 -0800 |
commit | b5537553f2ec7de70b507936a3abea30b71e2cbf (patch) | |
tree | f798d9f19e9475bd39e0e24c8a48a83077c2b75f /share/spack | |
parent | a42f340d375cbc781e7a113f3b3afa2e4e3124ed (diff) | |
download | spack-b5537553f2ec7de70b507936a3abea30b71e2cbf.tar.gz spack-b5537553f2ec7de70b507936a3abea30b71e2cbf.tar.bz2 spack-b5537553f2ec7de70b507936a3abea30b71e2cbf.tar.xz spack-b5537553f2ec7de70b507936a3abea30b71e2cbf.zip |
Run coverage for the `spack install` command as well as `spack test`.
- Also don't run coverage on OSX.
Diffstat (limited to 'share/spack')
-rwxr-xr-x | share/spack/qa/run-unit-tests | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/share/spack/qa/run-unit-tests b/share/spack/qa/run-unit-tests index 0728614bc8..9cace0dfd6 100755 --- a/share/spack/qa/run-unit-tests +++ b/share/spack/qa/run-unit-tests @@ -40,12 +40,13 @@ cd "$SPACK_ROOT" source "$SPACK_ROOT/share/spack/setup-env.sh" spack compilers spack config get compilers -spack install -v libdwarf # Run unit tests with code coverage if [[ "$TRAVIS_PYTHON_VERSION" == 2.7 ]]; then + coverage run bin/spack install -v libdwarf coverage run bin/spack test "$@" coverage combine else + spack install -v libdwarf spack test "$@" fi |