summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Volkl <valentin.volkl@cern.ch>2021-09-26 15:49:10 +0200
committerGitHub <noreply@github.com>2021-09-26 15:49:10 +0200
commit1f972f90c8fb3e7ec5b09382fc99508597b8ccbe (patch)
tree418c23c29cdfd7308e77331b5d345e8652df1d49
parent123c1057714823c2a8dcaa1589b142dcc818b180 (diff)
downloadspack-1f972f90c8fb3e7ec5b09382fc99508597b8ccbe.tar.gz
spack-1f972f90c8fb3e7ec5b09382fc99508597b8ccbe.tar.bz2
spack-1f972f90c8fb3e7ec5b09382fc99508597b8ccbe.tar.xz
spack-1f972f90c8fb3e7ec5b09382fc99508597b8ccbe.zip
podio, edm4hep: fix tests (#26116)
Co-authored-by: Seth R. Johnson <johnsonsr@ornl.gov>
-rw-r--r--var/spack/repos/builtin/packages/edm4hep/package.py1
-rw-r--r--var/spack/repos/builtin/packages/podio/package.py4
2 files changed, 4 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/edm4hep/package.py b/var/spack/repos/builtin/packages/edm4hep/package.py
index ee654e125d..1cdad385cb 100644
--- a/var/spack/repos/builtin/packages/edm4hep/package.py
+++ b/var/spack/repos/builtin/packages/edm4hep/package.py
@@ -39,6 +39,7 @@ class Edm4hep(CMakePackage):
# C++ Standard
args.append(self.define('CMAKE_CXX_STANDARD',
self.spec.variants['cxxstd'].value))
+ args.append(self.define("BUILD_TESTING", self.run_tests))
return args
def url_for_version(self, version):
diff --git a/var/spack/repos/builtin/packages/podio/package.py b/var/spack/repos/builtin/packages/podio/package.py
index a6e6e10a02..5ed4d38a98 100644
--- a/var/spack/repos/builtin/packages/podio/package.py
+++ b/var/spack/repos/builtin/packages/podio/package.py
@@ -44,12 +44,14 @@ class Podio(CMakePackage):
depends_on('py-pyyaml', type=('build', 'run'))
depends_on('py-jinja2@2.10.1:', type=('build', 'run'), when='@0.12.0:')
depends_on('sio', type=('build', 'link'), when='+sio')
+ depends_on('catch2@3.0.1:', type=('test'), when="@0.13:")
conflicts('+sio', when='@:0.12', msg='sio support requires at least podio@0.13')
def cmake_args(self):
args = [
- self.define_from_variant('ENABLE_SIO', 'sio')
+ self.define_from_variant('ENABLE_SIO', 'sio'),
+ self.define("BUILD_TESTING", self.run_tests),
]
return args