Ejemplo n.º 1
0
def sample_param_cases(use_compact_names):
    class _X(rfm.RegressionTest):
        p = parameter([1] + list(range(11)))
        valid_systems = ['*']
        valid_prog_environs = ['*']

    return [executors.TestCase(_X(variant_num=v), None, None)
            for v in range(_X.num_variants)]
Ejemplo n.º 2
0
def sample_param_cases_compat():
    # Param cases with the old naming scheme; i.e., with
    # `general/compact_test_names=False`

    class _X(rfm.RegressionTest):
        p = parameter([1] + list(range(11)))
        valid_systems = ['*']
        valid_prog_environs = ['*']

    return [executors.TestCase(_X(variant_num=v), None, None)
            for v in range(_X.num_variants)]
Ejemplo n.º 3
0
def make_case(attrs):
    class _MyTest:
        def __init__(self):
            self.valid_systems = ['*']
            self.valid_prog_environs = ['*']

    test = _MyTest()
    for k, v in attrs.items():
        setattr(test, k, v)

    return executors.TestCase(test, None, None)
Ejemplo n.º 4
0
def make_case(*args, **kwargs):
    test = test_util.make_check(*args, **kwargs)
    return executors.TestCase(test, None, None)