summaryrefslogblamecommitdiff
path: root/share/spack/qa/run-unit-tests
blob: 7e300280ff1bd37c07f1ffc928f873063560e127 (plain) (tree)
1
2
3
4
5
6
7
8
              
 

                            
 

                               
 


                                           
 

                                         
 



                                       
                            
                          

                                   

                                   
#!/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 unit tests with code coverage
${coverage_run} bin/spack test "$@"
${coverage_combine}