diff --git a/cscs-checks/libraries/boost/boost_python_check.py b/cscs-checks/libraries/boost/boost_python_check.py index efb6c89bb2..d08bb31b11 100644 --- a/cscs-checks/libraries/boost/boost_python_check.py +++ b/cscs-checks/libraries/boost/boost_python_check.py @@ -2,7 +2,7 @@ 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__() @@ -10,18 +10,18 @@ def __init__(self, boost_version, cray_gnu_version, python_version): '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'] + 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'}