[pypy-svn] r64124 - pypy/branch/pyjitpl5-simplify/pypy/jit/backend/llgraph/test

benjamin at codespeak.net benjamin at codespeak.net
Thu Apr 16 01:44:59 CEST 2009


Author: benjamin
Date: Thu Apr 16 01:44:52 2009
New Revision: 64124

Modified:
   pypy/branch/pyjitpl5-simplify/pypy/jit/backend/llgraph/test/test_llgraph.py
Log:
let these tests actually run, lots fail, though

Modified: pypy/branch/pyjitpl5-simplify/pypy/jit/backend/llgraph/test/test_llgraph.py
==============================================================================
--- pypy/branch/pyjitpl5-simplify/pypy/jit/backend/llgraph/test/test_llgraph.py	(original)
+++ pypy/branch/pyjitpl5-simplify/pypy/jit/backend/llgraph/test/test_llgraph.py	Thu Apr 16 01:44:52 2009
@@ -7,7 +7,6 @@
      TreeLoop
 from pypy.jit.metainterp.resoperation import ResOperation, rop
 from pypy.jit.metainterp.executor import execute
-from pypy.jit.backend.llgraph.runner import CPU
 from pypy.jit.backend.test.runner import BaseBackendTest
 
 NODE = lltype.GcForwardReference()
@@ -17,11 +16,11 @@
 SUBNODE = lltype.GcStruct('SUBNODE', ('parent', NODE))
 
 
-class TestLLGraph(BaseBackendTest):
+class LLGraphTest(BaseBackendTest):
+
+    def setup_class(self):
+        self.cpu = self.cpu_type(None)
 
-    def setup_class(cls):
-        cls.cpu = CPU(None)
-    
     def eval_llinterp(self, runme, *args, **kwds):
         expected_class = kwds.pop('expected_class', None)
         expected_vals = [(name[9:], kwds[name])
@@ -220,3 +219,10 @@
         #
         cpu.do_strsetitem([x, BoxInt(4), BoxInt(ord('/'))])
         assert x.getptr(lltype.Ptr(rstr.STR)).chars[4] == '/'
+
+
+class TestLLTypeLLGraph(LLGraphTest):
+    from pypy.jit.backend.llgraph.runner import LLtypeCPU as cpu_type
+
+class TestOOTypeLLGraph(LLGraphTest):
+    from pypy.jit.backend.llgraph.runner import OOtypeCPU as cpu_type



More information about the Pypy-commit mailing list