Skip to content

Commit 6fd76da

Browse files
author
Vasileios Karakasis
authored
Merge pull request #2114 from teojgo/test/nvidia_mkl_resolve
[test] Explicitly set the `executable` in the base class of the libsci_resolve test
2 parents febb258 + 562176a commit 6fd76da

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

cscs-checks/compile/libsci_resolve.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
class LibSciResolveBaseTest(rfm.CompileOnlyRegressionTest):
1212
sourcesdir = 'src/libsci_resolve'
1313
sourcepath = 'libsci_resolve.f90'
14+
executable = 'libsciresolve.x'
1415
valid_systems = ['daint:login', 'daint:gpu', 'dom:login', 'dom:gpu']
1516
modules = ['craype-haswell']
1617
maintainers = ['AJ', 'LM']
@@ -41,8 +42,8 @@ def update_tags(self):
4142
def set_modules(self):
4243
self.modules += [f'craype-accel-nvidia{self.accel_nvidia_version}']
4344

44-
@run_before('sanity')
45-
def set_sanity(self):
45+
@sanity_function
46+
def libsci_acc_resolve(self):
4647
# here lib_name is in the format: libsci_acc_gnu_48_nv35.so or
4748
# libsci_acc_cray_nv35.so
4849
regex = (r'.*\(NEEDED\).*libsci_acc_(?P<prgenv>[A-Za-z]+)_'
@@ -56,7 +57,7 @@ def set_sanity(self):
5657
cver_sanity = sn.assert_eq(
5758
sn.extractsingle(regex, self.stdout, 'cver'), cver)
5859

59-
self.sanity_patterns = sn.all([
60+
return sn.all([
6061
sn.assert_eq(
6162
sn.extractsingle(regex, self.stdout, 'prgenv'), prgenv),
6263
cver_sanity,
@@ -83,11 +84,11 @@ def cdt_2105_workaround(self):
8384
'-L/opt/intel/oneapi/mkl/latest/lib/intel64/'
8485
]
8586

86-
@run_before('sanity')
87-
def set_sanity(self):
87+
@sanity_function
88+
def libmkl_resolve(self):
8889
regex = (r'.*\(NEEDED\).*libmkl_(?P<prgenv>[A-Za-z]+)_(?P<version>\S+)'
8990
r'\.so')
90-
self.sanity_patterns = sn.all([
91+
return sn.all([
9192
sn.assert_eq(
9293
sn.extractsingle(regex, self.stdout, 'prgenv'), 'intel'),
9394
sn.assert_eq(

0 commit comments

Comments
 (0)