[pypy-commit] pypy ppc-jit-backend: kill obsolete tests

hager noreply at buildbot.pypy.org
Tue Mar 13 18:48:56 CET 2012


Author: hager <sven.hager at uni-duesseldorf.de>
Branch: ppc-jit-backend
Changeset: r53453:456316cfa0b3
Date: 2012-03-13 10:47 -0700
http://bitbucket.org/pypy/pypy/changeset/456316cfa0b3/

Log:	kill obsolete tests

diff --git a/pypy/jit/backend/ppc/test/test_interp.py b/pypy/jit/backend/ppc/test/test_interp.py
deleted file mode 100644
--- a/pypy/jit/backend/ppc/test/test_interp.py
+++ /dev/null
@@ -1,22 +0,0 @@
-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
diff --git a/pypy/jit/backend/ppc/test/test_interp_ts.py b/pypy/jit/backend/ppc/test/test_interp_ts.py
deleted file mode 100644
--- a/pypy/jit/backend/ppc/test/test_interp_ts.py
+++ /dev/null
@@ -1,21 +0,0 @@
-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
-


More information about the pypy-commit mailing list