dd4hep: fixes to run tests (#25204)
This commit is contained in:
parent
597358e735
commit
d4df3b31fb
@ -71,6 +71,7 @@ class Dd4hep(CMakePackage):
|
||||
depends_on('hepmc3', when="+hepmc3")
|
||||
depends_on('lcio', when="+lcio")
|
||||
depends_on('edm4hep', when="+edm4hep")
|
||||
depends_on('py-pytest', type="test")
|
||||
|
||||
# See https://github.com/AIDASoft/DD4hep/pull/771
|
||||
conflicts('^cmake@3.16:3.17.0', when='@1.15',
|
||||
@ -130,3 +131,15 @@ def url_for_version(self, version):
|
||||
version_str = 'v%02d-%02d-%02d.tar.gz' % (major, minor, patch)
|
||||
|
||||
return base_url + '/' + version_str
|
||||
|
||||
# dd4hep tests need to run after install step:
|
||||
# disable the usual check
|
||||
def check(self):
|
||||
pass
|
||||
|
||||
# instead add custom check step that runs after installation
|
||||
@run_after('install')
|
||||
def install_check(self):
|
||||
with working_dir(self.build_directory):
|
||||
if self.run_tests:
|
||||
ninja('test')
|
||||
|
Loading…
Reference in New Issue
Block a user