Abinit package: add option to install tests (#27842)
This commit is contained in:
parent
9ec638c7bb
commit
97a1d48512
1 changed files with 8 additions and 0 deletions
|
@ -55,6 +55,9 @@ class Abinit(AutotoolsPackage):
|
||||||
values=('safe', 'standard', 'aggressive'),
|
values=('safe', 'standard', 'aggressive'),
|
||||||
description='Select the optimization flavor to use.')
|
description='Select the optimization flavor to use.')
|
||||||
|
|
||||||
|
variant('install-tests', default=False,
|
||||||
|
description='Install test cases')
|
||||||
|
|
||||||
# Add dependencies
|
# Add dependencies
|
||||||
depends_on('atompaw')
|
depends_on('atompaw')
|
||||||
depends_on('blas')
|
depends_on('blas')
|
||||||
|
@ -276,3 +279,8 @@ def check(self):
|
||||||
# requires Python with numpy, pyyaml, pandas
|
# requires Python with numpy, pyyaml, pandas
|
||||||
if '~mpi' in self.spec:
|
if '~mpi' in self.spec:
|
||||||
make('tests_in')
|
make('tests_in')
|
||||||
|
|
||||||
|
def install(self, spec, prefix):
|
||||||
|
make('install')
|
||||||
|
if '+install-tests' in spec:
|
||||||
|
install_tree('tests', spec.prefix.tests)
|
||||||
|
|
Loading…
Reference in a new issue