Skip to content

Commit e3f918c

Browse files
authored
Merge pull request #581 from teojgo/regression_test/libsci_acc_compute_nodes
[test] Run libsci_acc and libsci_resolve tests on compute nodes as well
2 parents cbee7ac + ea7d1f1 commit e3f918c

File tree

2 files changed

+17
-25
lines changed

2 files changed

+17
-25
lines changed
Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,27 @@
11
import os
22

3+
import reframe as rfm
34
import reframe.utility.sanity as sn
4-
from reframe.core.pipeline import RunOnlyRegressionTest
55

66

7-
class LibSciAccSymLinkTest(RunOnlyRegressionTest):
8-
def __init__(self, lib_name, **kwargs):
9-
super().__init__(lib_name.replace('.so', '_symlink_check'),
10-
os.path.dirname(__file__), **kwargs)
11-
7+
@rfm.parameterized_test(['libsci_acc_gnu_49_nv20'],
8+
['libsci_acc_gnu_49_nv35'],
9+
['libsci_acc_gnu_49_nv60'],
10+
['libsci_acc_cray_nv20_openacc'],
11+
['libsci_acc_cray_nv35_openacc'],
12+
['libsci_acc_cray_nv60_openacc'])
13+
class LibSciAccSymLinkTest(rfm.RunOnlyRegressionTest):
14+
def __init__(self, lib_name):
15+
super().__init__()
1216
self.descr = 'LibSciAcc symlink check of %s' % lib_name
13-
self.valid_systems = ['daint:login', 'dom:login']
17+
self.valid_systems = ['daint:login', 'daint:gpu',
18+
'dom:login', 'dom:gpu']
1419

1520
# The prgenv is irrelevant for this case, so just chose one
1621
self.valid_prog_environs = ['PrgEnv-cray']
17-
1822
self.executable = 'ls'
19-
self.executable_opts = '-al /opt/cray/pe/lib64/libsci_a*'.split()
20-
self.sanity_patterns = sn.assert_found(lib_name, self.stdout)
23+
self.executable_opts = ['-al', '/opt/cray/pe/lib64/libsci_a*']
24+
self.sanity_patterns = sn.assert_found(lib_name + '.so', self.stdout)
25+
2126
self.maintainers = ['AJ']
2227
self.tags = {'production'}
23-
24-
25-
def _get_checks(**kwargs):
26-
27-
ret = []
28-
for lib_name in [r'libsci_acc_gnu_49_nv20.so',
29-
r'libsci_acc_gnu_49_nv35.so',
30-
r'libsci_acc_gnu_49_nv60.so',
31-
r'libsci_acc_cray_nv20_openacc.so',
32-
r'libsci_acc_cray_nv35_openacc.so',
33-
r'libsci_acc_cray_nv60_openacc.so']:
34-
ret.append(LibSciAccSymLinkTest(lib_name, **kwargs))
35-
36-
return ret

cscs-checks/compile/libsci_resolve.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ def __init__(self):
77
super().__init__()
88
self.sourcesdir = 'src/libsci_resolve'
99
self.sourcepath = 'libsci_resolve.f90'
10-
self.valid_systems = ['daint:login', 'dom:login']
10+
self.valid_systems = ['daint:login', 'daint:gpu',
11+
'dom:login', 'dom:gpu']
1112
self.modules = ['craype-haswell']
1213
self.maintainers = ['AJ']
1314
self.tags = {'production'}

0 commit comments

Comments
 (0)