Skip to content

Commit b780dd6

Browse files
author
Vasileios Karakasis
authored
Merge pull request #1824 from teojgo/test/required_version_semver
[test] Remove `@required_version` decorator from tests
2 parents 5c7ef82 + 17d5bdd commit b780dd6

File tree

36 files changed

+35
-85
lines changed

36 files changed

+35
-85
lines changed

cscs-checks/apps/amber/amber_check.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ def __init__(self, input_file, output_file):
4343
self.tags = {'scs', 'external-resources'}
4444

4545

46-
@rfm.required_version('>=2.16')
4746
@rfm.parameterized_test(*(
4847
[variant, arch, scale]
4948
for variant in ['prod', 'maint']

cscs-checks/apps/cp2k/cp2k_check.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,12 @@ def __init__(self, scale, variant):
126126
@rfm.run_before('run')
127127
def set_task_distribution(self):
128128
self.job.options = ['--distribution=block:block']
129-
129+
130130
@rfm.run_before('run')
131131
def set_cpu_binding(self):
132132
self.job.launcher.options = ['--cpu-bind=cores']
133133

134+
134135
@rfm.parameterized_test(*([s, v]
135136
for s in ['small', 'large']
136137
for v in ['maint', 'prod']))

cscs-checks/apps/cpmd/cpmd_check.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import reframe.utility.sanity as sn
88

99

10-
@rfm.required_version('>=2.16')
1110
@rfm.parameterized_test(['small'], ['large'])
1211
class CPMDCheck(rfm.RunOnlyRegressionTest):
1312
def __init__(self, scale):

cscs-checks/apps/greasy/greasy_check.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ def to_seconds(str):
1616
datetime.strptime('00:00:00', '%H:%M:%S')).total_seconds()
1717

1818

19-
@rfm.required_version('>=2.19')
2019
@rfm.parameterized_test(
2120
['serial', 'gpu', 24, 12, 1, 1],
2221
['serial', 'mc', 72, 36, 1, 1],
@@ -39,7 +38,7 @@ def __init__(self, variant, partition, num_greasy_tasks, nworkes_per_node,
3938
# sleep enough time to distinguish if the files are running in parallel
4039
# or not
4140
self.sleep_time = 60
42-
self.build_system.cflags = ['-DSLEEP_TIME=%d' % self.sleep_time]
41+
self.build_system.cflags = [f'-DSLEEP_TIME={self.sleep_time:d}']
4342
self.variant = variant
4443
if variant == 'openmp':
4544
self.build_system.cflags += ['-fopenmp']

cscs-checks/apps/gromacs/gromacs_check.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ def __init__(self, output_file):
5353
self.tags = {'scs', 'external-resources'}
5454

5555

56-
@rfm.required_version('>=2.19')
5756
@rfm.parameterized_test(*([s, v]
5857
for s in ['small', 'large']
5958
for v in ['prod', 'maint']))
@@ -96,7 +95,6 @@ def __init__(self, scale, variant):
9695
self.tags |= {'maintenance' if variant == 'maint' else 'production'}
9796

9897

99-
@rfm.required_version('>=2.19')
10098
@rfm.parameterized_test(*([s, v]
10199
for s in ['small', 'large']
102100
for v in ['prod']))

cscs-checks/apps/lammps/lammps_check.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ def __init__(self):
4444
self.maintainers = ['TR', 'VH']
4545

4646

47-
@rfm.required_version('>=2.16.0')
4847
@rfm.parameterized_test(*([s, v]
4948
for s in ['small', 'large']
5049
for v in ['prod', 'maint']))
@@ -88,7 +87,6 @@ def __init__(self, scale, variant):
8887
self.tags |= {'maintenance' if variant == 'maint' else 'production'}
8988

9089

91-
@rfm.required_version('>=2.16.0')
9290
@rfm.parameterized_test(*([s, v]
9391
for s in ['small', 'large']
9492
for v in ['prod']))

cscs-checks/apps/namd/namd_check.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111

1212
class NamdBaseCheck(rfm.RunOnlyRegressionTest):
1313
def __init__(self, arch, scale, variant):
14-
self.descr = 'NAMD check (%s, %s)' % (arch, variant)
14+
self.descr = f'NAMD check ({arch}, {variant})'
1515
if self.current_system.name == 'pilatus':
1616
self.valid_prog_environs = ['cpeIntel']
1717
else:
1818
self.valid_prog_environs = ['builtin']
19+
1920
self.modules = ['NAMD']
2021

2122
# Reset sources dir relative to the SCS apps prefix
@@ -70,7 +71,6 @@ def __init__(self, arch, scale, variant):
7071
}
7172

7273

73-
@rfm.required_version('>=2.16')
7474
@rfm.parameterized_test(*([s, v]
7575
for s in ['small', 'large']
7676
for v in ['maint', 'prod']))
@@ -94,7 +94,6 @@ def __init__(self, scale, variant):
9494
}
9595

9696

97-
@rfm.required_version('>=2.16')
9897
@rfm.parameterized_test(*([s, v]
9998
for s in ['small', 'large']
10099
for v in ['maint', 'prod']))

cscs-checks/apps/python/numpy_check.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ def __init__(self):
7474
self.maintainers = ['RS', 'TR']
7575

7676

77-
@rfm.required_version('>=2.16')
7877
@rfm.simple_test
7978
class NumpyHaswellTest(NumpyBaseTest):
8079
def __init__(self):
@@ -83,7 +82,6 @@ def __init__(self):
8382
self.num_cpus_per_task = 12
8483

8584

86-
@rfm.required_version('>=2.16')
8785
@rfm.simple_test
8886
class NumpyBroadwellTest(NumpyBaseTest):
8987
def __init__(self):

cscs-checks/apps/quantumespresso/quantumespresso_check.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ def set_task_distribution(self):
131131
def set_cpu_binding(self):
132132
self.job.launcher.options = ['--cpu-bind=cores']
133133

134+
134135
@rfm.parameterized_test(*([s, v]
135136
for s in ['small', 'large']
136137
for v in ['maint', 'prod']))

cscs-checks/apps/tensorflow/tf2_horovod_check.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import reframe.utility.osext as osext
99

1010

11-
@rfm.required_version('>=2.16')
1211
@rfm.parameterized_test(['small'], ['large'])
1312
class TensorFlow2HorovodTest(rfm.RunOnlyRegressionTest):
1413
def __init__(self, variant):

0 commit comments

Comments
 (0)