Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions cscs-checks/libraries/boost/boost_python_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@
import reframe.utility.sanity as sn


@rfm.parameterized_test(['1.65.0', '17.08', '2.7'], ['1.65.0', '17.08', '3.6'])
@rfm.parameterized_test(['1.67.0', '18.07', '2.7'], ['1.67.0', '18.07', '3.6'])
class BoostCrayGnuPythonTest(rfm.RegressionTest):
def __init__(self, boost_version, cray_gnu_version, python_version):
super().__init__()
self.descr = ('Test for Boost-%s for CrayGnu-%s with python %s '
'support') % (boost_version, cray_gnu_version,
python_version)
self.valid_systems = ['daint:mc', 'daint:gpu', 'dom:mc', 'dom:gpu']
self.valid_prog_environs = ['PrgEnv-cray']
python_major_version = python_version.split('.')[0]
self.valid_prog_environs = ['PrgEnv-gnu']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was it wrong previously that used PrgEnv-cray?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it was wrong. Nevertheless the boost module loaded PrgEnv-gnu, and now that we have the build system I can see the conflict in the .err file.

python_major, python_minor = python_version.split('.')
self.modules = ['Boost/%s-CrayGNU-%s-python%s' % (
boost_version, cray_gnu_version, python_major_version)]
self.executable = 'python%s hello.py' % python_major_version
boost_version, cray_gnu_version, python_major)]
self.executable = 'python%s hello.py' % python_major
self.sanity_patterns = sn.assert_found('hello, world', self.stdout)
python_include_suffix = 'm' if python_major_version == '3' else ''
python_lib_suffix = '3' if python_major_version == '3' else ''
python_include_suffix = 'm' if python_major == '3' else ''
python_lib = 'boost_python%s%s' % (python_major, python_minor)
self.variables = {
'PYTHON_INCLUDE': r'include/python%s%s' % (
python_version, python_include_suffix),
'PYTHON_BOOST_LIB': 'boost_python' + python_lib_suffix
'PYTHON_BOOST_LIB': python_lib
}
self.maintainers = ['JB', 'AJ']
self.tags = {'scs', 'production'}