Exemple #1
0
def gen_custom_name(testcase_func, param_num, param):
# Full TestCaseName
#    testcasename = "{0}_{1}".format(testcase_func.__name__,
#        parameterized.to_safe_name("_".join(str(x) for x in param.args)))
# Abbreviated TestCaseName
    testcasename = "{0}_{1:03}_{2}".format(testcase_func.__name__,
        int(parameterized.to_safe_name(str(param.args[0]))),
        parameterized.to_safe_name(str(param.args[1])))
    return testcasename
def gen_custom_name(testcase_func, param_num, param):
    # Full TestCaseName
    #    testcasename = "{0}_{1:03}".format(testcase_func.__name__,
    #        parameterized.to_safe_name("_".join(str(x) for x in param.args)))
    # Abbreviated TestCaseName
    testcasename = "{0}_{1:04}_{2}_L1:{3}-{4}_L2:{5}-{6}-{7}_Repl:{8}_Type:{9}_Prefetch:{10}".format(
        testcase_func.__name__,  # Test Name
        int(parameterized.to_safe_name(str(param.args[0]))),  # Test Num
        parameterized.to_safe_name(str(param.args[1])),  # OMP App
        parameterized.to_safe_name(str(param.args[2])),  # L1 Cache
        parameterized.to_safe_name(str(param.args[3])),
        parameterized.to_safe_name(str(param.args[4])),  # L2 Cache
        parameterized.to_safe_name(str(param.args[5])),
        parameterized.to_safe_name(str(param.args[6])),
        parameterized.to_safe_name(str(param.args[7])),  # Cache Repl
        parameterized.to_safe_name(str(param.args[8])),  # Test Type
        parameterized.to_safe_name(str(param.args[9])))  # prefetch
    return testcasename
Exemple #3
0
def gen_custom_name(testcase_func, param_num, param):
    # Full TestCaseName
    #    testcasename = "{0}_{1:03}".format(testcase_func.__name__,
    #        parameterized.to_safe_name("_".join(str(x) for x in param.args)))
    # Abbreviated TestCaseName
    testcasename = "{0}_{1:04}_{2}_L1:{3}-{4}-{5}_L2:{6}-{7}-{8}-{9}_L3:{10}-{11}-{12}-{13}_Type:{14}".format(
        testcase_func.__name__,  # Test Name
        int(parameterized.to_safe_name(str(param.args[0]))),  # Test Num
        parameterized.to_safe_name(str(param.args[1])),  # OMP App
        parameterized.to_safe_name(str(param.args[2])),  # L1 Cache
        parameterized.to_safe_name(str(param.args[3])),
        parameterized.to_safe_name(str(param.args[4])),
        parameterized.to_safe_name(str(param.args[5])),  # L2 Cache
        parameterized.to_safe_name(str(param.args[6])),
        parameterized.to_safe_name(str(param.args[7])),
        parameterized.to_safe_name(str(param.args[8])),
        parameterized.to_safe_name(str(param.args[9])),  # L3 Cache
        parameterized.to_safe_name(str(param.args[10])),
        parameterized.to_safe_name(str(param.args[11])),
        parameterized.to_safe_name(str(param.args[12])),
        parameterized.to_safe_name(str(param.args[13]))  # Test Type
    )
    return testcasename