예제 #1
0
    def test_and(self):
        expr = sn.and_(self.a, self.b)
        self._a = 1
        self._b = 1

        self.assertTrue(expr)
        self.assertFalse(sn.not_(expr))
예제 #2
0
def test_and(user_obj):
    expr = sn.and_(user_obj.a, user_obj.b)
    user_obj._a = 1
    user_obj._b = 1

    assert expr
    assert not sn.not_(expr)
예제 #3
0
    def test_and(self):
        expr = sn.and_(self.a, self.b)
        self._a = 1
        self._b = 1

        assert expr
        assert not sn.not_(expr)
예제 #4
0
 def __init__(self):
     self.descr = 'Apply a sanity function iteratively'
     self.valid_systems = ['*']
     self.valid_prog_environs = ['*']
     self.executable = './random_numbers.sh'
     numbers = sn.extractall(r'Random: (?P<number>\S+)', self.stdout,
                             'number', float)
     self.sanity_patterns = sn.and_(
         sn.assert_eq(sn.count(numbers), 100),
         sn.all(sn.map(lambda x: sn.assert_bounded(x, 90, 100), numbers)))
예제 #5
0
 def __init__(self):
     self.descr = ('ReFrame tutorial demonstrating the use of deferred '
                   'iteration via the `map` sanity function.')
     self.valid_systems = ['*']
     self.valid_prog_environs = ['*']
     self.executable = './random_numbers.sh'
     numbers = sn.extractall(r'Random: (?P<number>\S+)', self.stdout,
                             'number', float)
     self.sanity_patterns = sn.and_(
         sn.assert_eq(sn.count(numbers), 100),
         sn.all(sn.map(lambda x: sn.assert_bounded(x, 90, 100), numbers)))
     self.maintainers = ['put-your-name-here']
     self.tags = {'tutorial'}
 def __init__(self):
     self.descr = ('linpack intel-mkl/2019.3.199-intel-19.0.4 benchmark CPU check '
                   'RunOnlyRegressionTest')
     self.valid_systems = ['pi2:cpu']
     self.valid_prog_environs = ['*']
     self.modules = ["intel-parallel-studio"]
     self.sourcesdir = "/lustre/opt/cascadelake/linux-centos7-cascadelake/intel-19.0.4/intel-mkl-2019.3.199-fwha3ldpm5qbymzf45nzfpaehfztqwms/mkl/benchmarks/mp_linpack"
     self.num_cpus_per_task = 1
     self.num_tasks = 40
     self.num_tasks_per_node = 40
     self.time_limit = None
     self.executable = './runme_intel64_static'
     self.sanity_patterns = sn.and_(sn.assert_found(r'1 tests completed and passed residual checks', self.stdout),sn.assert_found(r'End of Tests.', self.stdout))
     self.perf_patterns = {
         'perf': sn.avg(sn.extractiter('WR00L2L2\s+\S+\s+\S+\s+\S+\s+1\s+\S+\s+(?P<perf>\S+)',
                                   self.stdout, 'perf', float))
     }
     self.reference = {
             'pi2:cpu': {
                 'perf': (2000, 0, None, 'GFlops')
             }
         }
     self.maintainers = ['blacknail']
     self.tags = {'benchmark','pro','stream','node_health'}