1. Alexis D.
  2. pypy

Commits

Sven Hager  committed 456316c

kill obsolete tests

  • Participants
  • Parent commits 11155b0
  • Branches ppc-jit-backend

Comments (0)

Files changed (2)

File pypy/jit/backend/ppc/test/test_interp.py

-from pypy.jit.codegen.ppc import codebuf, rgenop
-from pypy.rpython.lltypesystem import lltype
-from pypy.jit.codegen.test import rgenop_tests
-from pypy.rpython.test.test_llinterp import interpret
-from pypy.jit.codegen.ppc.test import test_rgenop
-
-class LLTypeRGenOp(rgenop.RPPCGenOp):
-    MachineCodeBlock = codebuf.LLTypeMachineCodeBlock
-    ExistingCodeBlock = codebuf.LLTypeExistingCodeBlock
-
-def test_simple():
-    FUNC = lltype.FuncType([lltype.Signed], lltype.Signed)
-    def f(n):
-        rgenop = LLTypeRGenOp()
-        sigtoken = rgenop.sigToken(FUNC)
-        builder, gv_add_one, [gv_x] = rgenop.newgraph(sigtoken, "adder")
-        builder.start_writing()
-        gv_result = builder.genop2("int_add", gv_x, rgenop.genconst(n))
-        builder.finish_and_return(sigtoken, gv_result)
-        builder.end()
-    res = interpret(f, [5], policy=rgenop_tests.GENOP_POLICY)
-    # just testing that this didn't crash

File pypy/jit/backend/ppc/test/test_interp_ts.py

-from pypy.jit.codegen.ppc.conftest import option
-import py
-from pypy.jit.codegen.i386.test.test_interp_ts import I386LLInterpTimeshiftingTestMixin
-from pypy.jit.timeshifter.test import test_timeshift
-
-def setup_module(mod):
-    if not option.run_interp_tests:
-        py.test.skip("these tests take ages and are not really useful")
-
-
-class PPCLLInterpTimeshiftingTestMixin(I386LLInterpTimeshiftingTestMixin):
-    from pypy.jit.codegen.ppc.test.test_interp import LLTypeRGenOp as RGenOp
-
-class TestTimeshiftPPC(PPCLLInterpTimeshiftingTestMixin,
-                       test_timeshift.TestLLType):
-
-    # for the individual tests see
-    # ====> ../../../timeshifter/test/test_timeshift.py
-
-    pass
-