
* Revert "Travis: use --concurrency=multiprocessing only on build tests (#6872)"
This reverts commit 596d463714
.
* Removing 'coverage combine' in test script
According to what was discovered in #6887, one of the problems is
calling 'coverage combine' twice without the '-a' flag. This removes
the first call within our test scripts.
32 lines
710 B
Bash
Executable File
32 lines
710 B
Bash
Executable File
#!/bin/bash -e
|
|
#
|
|
# Description:
|
|
# Runs Spack unit tests.
|
|
#
|
|
# Usage:
|
|
# run-unit-tests [test ...]
|
|
#
|
|
# Options:
|
|
# Optionally add one or more unit tests
|
|
# to only run these tests.
|
|
#
|
|
. "$(dirname $0)/setup.sh"
|
|
check_dependencies ${coverage} git hg svn
|
|
|
|
# Move to root directory of Spack
|
|
# Allows script to be run from anywhere
|
|
cd "$SPACK_ROOT"
|
|
|
|
# Print compiler information
|
|
spack config get compilers
|
|
|
|
# Run spack help to cover command import
|
|
${coverage_run} bin/spack -h
|
|
${coverage_run} bin/spack help -a
|
|
|
|
# Profile and print top 20 lines for a simple call to spack spec
|
|
${coverage_run} bin/spack -p --lines 20 spec mpileaks
|
|
|
|
# Run unit tests with code coverage
|
|
${coverage_run} bin/spack test "$@"
|