hpctoolkit: add version 2022.01.15 (#28473)
This commit is contained in:
parent
5ca6ba6c8b
commit
d642a396af
1 changed files with 6 additions and 5 deletions
|
@ -26,6 +26,7 @@ class Hpctoolkit(AutotoolsPackage):
|
||||||
|
|
||||||
version('develop', branch='develop')
|
version('develop', branch='develop')
|
||||||
version('master', branch='master')
|
version('master', branch='master')
|
||||||
|
version('2022.01.15', commit='0238e9a052a696707e4e65b2269f342baad728ae')
|
||||||
version('2021.10.15', commit='a8f289e4dc87ff98e05cfc105978c09eb2f5ea16')
|
version('2021.10.15', commit='a8f289e4dc87ff98e05cfc105978c09eb2f5ea16')
|
||||||
version('2021.05.15', commit='004ea0c2aea6a261e7d5d216c24f8a703fc6c408')
|
version('2021.05.15', commit='004ea0c2aea6a261e7d5d216c24f8a703fc6c408')
|
||||||
version('2021.03.01', commit='68a051044c952f0f4dac459d9941875c700039e7')
|
version('2021.03.01', commit='68a051044c952f0f4dac459d9941875c700039e7')
|
||||||
|
@ -216,26 +217,26 @@ def setup_run_environment(self, env):
|
||||||
@run_after('install')
|
@run_after('install')
|
||||||
@on_package_attributes(run_tests=True)
|
@on_package_attributes(run_tests=True)
|
||||||
def check_install(self):
|
def check_install(self):
|
||||||
if self.spec.satisfies('@master'):
|
if self.spec.satisfies('@2022:'):
|
||||||
with working_dir('tests'):
|
with working_dir('tests'):
|
||||||
make('check')
|
make('check')
|
||||||
else:
|
else:
|
||||||
tty.warn('spack test for hpctoolkit requires branch master')
|
tty.warn('spack test for hpctoolkit requires 2022.01.15 or later')
|
||||||
|
|
||||||
# Post-Install tests (spack test run). These are the same tests
|
# Post-Install tests (spack test run). These are the same tests
|
||||||
# but with a different Makefile that works outside the build
|
# but with a different Makefile that works outside the build
|
||||||
# directory.
|
# directory.
|
||||||
@run_after('install')
|
@run_after('install')
|
||||||
def copy_test_files(self):
|
def copy_test_files(self):
|
||||||
if self.spec.satisfies('@master'):
|
if self.spec.satisfies('@2022:'):
|
||||||
self.cache_extra_test_sources(['tests'])
|
self.cache_extra_test_sources(['tests'])
|
||||||
|
|
||||||
def test(self):
|
def test(self):
|
||||||
test_dir = join_path(self.test_suite.current_test_cache_dir, 'tests')
|
test_dir = join_path(self.test_suite.current_test_cache_dir, 'tests')
|
||||||
if self.spec.satisfies('@master'):
|
if self.spec.satisfies('@2022:'):
|
||||||
with working_dir(test_dir):
|
with working_dir(test_dir):
|
||||||
make('-f', 'Makefile.spack', 'all')
|
make('-f', 'Makefile.spack', 'all')
|
||||||
self.run_test('./run-sort', status=[0], installed=False,
|
self.run_test('./run-sort', status=[0], installed=False,
|
||||||
purpose='selection sort unit test')
|
purpose='selection sort unit test')
|
||||||
else:
|
else:
|
||||||
tty.warn('spack test for hpctoolkit requires branch master')
|
tty.warn('spack test for hpctoolkit requires 2022.01.15 or later')
|
||||||
|
|
Loading…
Reference in a new issue