From 97a1d48512b2fe8fea5f38f0d247e107f9786651 Mon Sep 17 00:00:00 2001 From: downloadico Date: Tue, 14 Dec 2021 12:04:28 -0700 Subject: Abinit package: add option to install tests (#27842) --- var/spack/repos/builtin/packages/abinit/package.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/abinit/package.py b/var/spack/repos/builtin/packages/abinit/package.py index db19c5af04..438d2e3e4a 100644 --- a/var/spack/repos/builtin/packages/abinit/package.py +++ b/var/spack/repos/builtin/packages/abinit/package.py @@ -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 @@ class Abinit(AutotoolsPackage): # 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) -- cgit v1.2.3-70-g09d2