diff --git a/cscs-checks/prgenv/cpu_target_check.py b/cscs-checks/prgenv/cpu_target_check.py new file mode 100644 index 0000000000..d0b6b00a1e --- /dev/null +++ b/cscs-checks/prgenv/cpu_target_check.py @@ -0,0 +1,18 @@ +import reframe as rfm +import reframe.utility.sanity as sn + + +@rfm.simple_test +class CrayCPUTargetTest(rfm.RunOnlyRegressionTest): + def __init__(self): + super().__init__() + self.descr = 'Checks whether CRAY_CPU_TARGET is set' + self.valid_systems = ['daint:login', 'dom:login'] + self.valid_prog_environs = ['PrgEnv-cray', 'PrgEnv-gnu', + 'PrgEnv-intel', 'PrgEnv-pgi'] + self.executable = 'echo CRAY_CPU_TARGET=$CRAY_CPU_TARGET' + self.sanity_patterns = sn.assert_found(r'CRAY_CPU_TARGET=\S+', + self.stdout) + + self.maintainers = ['TM'] + self.tags = {'production', 'maintenance'}