Abinit package: add option to install tests (#27842)

This commit is contained in:
downloadico 2021-12-14 12:04:28 -07:00 committed by GitHub
parent 9ec638c7bb
commit 97a1d48512
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,6 +55,9 @@ class Abinit(AutotoolsPackage):
values=('safe', 'standard', 'aggressive'),
description='Select the optimization flavor to use.')
variant('install-tests', default=False,
description='Install test cases')
# Add dependencies
depends_on('atompaw')
depends_on('blas')
@ -276,3 +279,8 @@ def check(self):
# requires Python with numpy, pyyaml, pandas
if '~mpi' in self.spec:
make('tests_in')
def install(self, spec, prefix):
make('install')
if '+install-tests' in spec:
install_tree('tests', spec.prefix.tests)