summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authordownloadico <download@carc.unm.edu>2021-12-14 12:04:28 -0700
committerGitHub <noreply@github.com>2021-12-14 11:04:28 -0800
commit97a1d48512b2fe8fea5f38f0d247e107f9786651 (patch)
tree53ff34845b47027987002378e325f69a3c56e15d /var
parent9ec638c7bbfed1b6a875dde721203fd142f433fc (diff)
downloadspack-97a1d48512b2fe8fea5f38f0d247e107f9786651.tar.gz
spack-97a1d48512b2fe8fea5f38f0d247e107f9786651.tar.bz2
spack-97a1d48512b2fe8fea5f38f0d247e107f9786651.tar.xz
spack-97a1d48512b2fe8fea5f38f0d247e107f9786651.zip
Abinit package: add option to install tests (#27842)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/abinit/package.py8
1 files changed, 8 insertions, 0 deletions
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)