Exemplo n.º 1
0
def allTests():
    """
    This function returns a list of tests.
    """

    optionals = [
      "codegen/alloc_definite_array.impala",
      "codegen/conversion_trait.impala",
      "codegen/diderot.impala",
      "codegen/endless_mangling.impala",
      "codegen/ldg.impala",
      "codegen/parallel.impala",
      "codegen/poly_type_arg.impala",
      "codegen/range.impala",
      "codegen/range_poly.impala",
      "codegen/ret_assert.impala",
      "codegen/return_tuple.impala",
      "codegen/runblock_bug.impala",
      "codegen/spir_phi_bug.impala",
      "codegen/struct_arg.impala",
      "codegen/system_f_problem.impala",
      "codegen/trait_impls.impala",
      "codegen/while_true.impala",
    ]

    tests = make_invoke_tests("codegen")
    tests += get_tests_from_dir("codegen/benchmarks")
    tests += get_tests_from_dir("codegen/inline_asm")

    # mark optionals
    for test in tests:
        if test.getName() in optionals:
            test.opt()

    return tests
Exemplo n.º 2
0
def allTests():
    """
    This function returns a list of tests.
    """
    
    tests = make_invoke_tests("codegen/inline_asm")
    if platform.machine() == 'x86_64':
        tests += get_tests_from_dir("codegen/inline_asm/x86_64")

    # mark optionals
    for test in tests:
        if test.getName() in optionals:
            test.opt()
    
    return tests
Exemplo n.º 3
0
def allTests():
    """
    This function returns a list of tests.
    """
    tests = make_invoke_tests("codegen/inline_asm/x86_64")

    # mark optionals
    for test in tests:
        if test.getName() in optionals:
            test.opt()

        if test.getName() in args:
            test.args = args[test.getName()]

    return tests
Exemplo n.º 4
0
def allTests():
    """
    This function returns a list of tests.
    """
    tests = make_invoke_tests("codegen/benchmarks", [], True, {"aobench.impala" : "ao.ppm"}, inputs)
    
    # mark optionals
    for test in tests:
        if test.getName() in optionals:
            test.opt()

        if test.getName() in args:
            test.args = args[test.getName()]


    
    return tests
Exemplo n.º 5
0
def allTests():
    """
    This function returns a list of tests.
    """

    optionals = [
        "codegen/bind_ret_inner_fn.impala",
        "codegen/conversion_trait.impala",
        "codegen/diderot.impala",
        "codegen/endless_mangling.impala",
        "codegen/generic_get.impala",
        "codegen/generic_while.impala",
        "codegen/ldg.impala",
        "codegen/mem2reg_bug2.impala",
        "codegen/parallel.impala",
        "codegen/poly_id.impala",
        "codegen/poly_sort.impala",
        "codegen/poly_sq.impala",
        "codegen/poly_type_arg.impala",
        "codegen/primes.impala",
        "codegen/range.impala",
        "codegen/range_poly.impala",
        "codegen/ret_assert.impala",
        "codegen/struct_arg.impala",
        "codegen/system_f_problem.impala",
        "codegen/trait_impls.impala",
        "codegen/while_true.impala",
    ]

    tests = make_invoke_tests("codegen")
    tests += get_tests_from_dir("codegen/benchmarks")
    tests += get_tests_from_dir("codegen/inline_asm")

    # mark optionals
    for test in tests:
        if test.getName() in optionals:
            test.opt()

    return tests