Add test deptype (#5132)

* Add '--test=all' and '--test=root' options to test either the root or the root and all dependencies.
* add a test dependency type that is only used when --test is enabled.
* test dependencies are not added to the spec, but they are provided in the test environment.
This commit is contained in:
scheibelp
2017-09-29 22:08:15 -07:00
committed by Todd Gamblin
parent 3c0e799a51
commit 9e7faff6c9
10 changed files with 182 additions and 13 deletions

View File

@@ -39,8 +39,7 @@ class Libpsl(AutotoolsPackage):
depends_on('pkg-config@0.9.0:', type='build')
depends_on('python@2.7:', type='build')
# TODO: Add a 'test' deptype
# depends_on('valgrind', type='test')
depends_on('valgrind~mpi~boost', type='test')
def configure_args(self):
spec = self.spec