We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dca5a2a + ffbf59b commit dbfa0b6Copy full SHA for dbfa0b6
cscs-checks/prgenv/cpu_target_check.py
@@ -0,0 +1,18 @@
1
+import reframe as rfm
2
+import reframe.utility.sanity as sn
3
+
4
5
+@rfm.simple_test
6
+class CrayCPUTargetTest(rfm.RunOnlyRegressionTest):
7
+ def __init__(self):
8
+ super().__init__()
9
+ self.descr = 'Checks whether CRAY_CPU_TARGET is set'
10
+ self.valid_systems = ['daint:login', 'dom:login']
11
+ self.valid_prog_environs = ['PrgEnv-cray', 'PrgEnv-gnu',
12
+ 'PrgEnv-intel', 'PrgEnv-pgi']
13
+ self.executable = 'echo CRAY_CPU_TARGET=$CRAY_CPU_TARGET'
14
+ self.sanity_patterns = sn.assert_found(r'CRAY_CPU_TARGET=\S+',
15
+ self.stdout)
16
17
+ self.maintainers = ['TM']
18
+ self.tags = {'production', 'maintenance'}
0 commit comments