[pypy-svn] r65345 - in pypy/branch/pyjitpl5/pypy/jit/backend/cli: . test
antocuni at codespeak.net
antocuni at codespeak.net
Thu May 21 12:39:36 CEST 2009
Author: antocuni
Date: Thu May 21 12:39:34 2009
New Revision: 65345
Added:
pypy/branch/pyjitpl5/pypy/jit/backend/cli/test/test_vlist.py (contents, props changed)
Modified:
pypy/branch/pyjitpl5/pypy/jit/backend/cli/runner.py
Log:
port more tests, implement do_oonewarray; test_simple_array passes
Modified: pypy/branch/pyjitpl5/pypy/jit/backend/cli/runner.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/cli/runner.py (original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/cli/runner.py Thu May 21 12:39:34 2009
@@ -149,6 +149,11 @@
assert len(args) == 1 # but we don't need it, so ignore
return typedescr.create()
+ def do_new_array(self, args, typedescr):
+ assert isinstance(typedescr, TypeDescr)
+ assert len(args) == 1
+ return typedescr.create_array(args[0])
+
def do_runtimenew(self, args, descr):
classbox = args[0]
classobj = ootype.cast_from_object(ootype.Class, classbox.getobj())
Added: pypy/branch/pyjitpl5/pypy/jit/backend/cli/test/test_vlist.py
==============================================================================
--- (empty file)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/cli/test/test_vlist.py Thu May 21 12:39:34 2009
@@ -0,0 +1,18 @@
+import py
+from pypy.jit.metainterp.test import test_vlist
+from pypy.jit.backend.cli.test.test_basic import CliJitMixin
+
+
+class TestVlist(CliJitMixin, test_vlist.TestOOtype):
+ # for the individual tests see
+ # ====> ../../../metainterp/test/test_vlist.py
+
+ def skip(self):
+ py.test.skip("works only after translation")
+
+ def _skip(self):
+ py.test.skip("in-progress")
+
+ test_list_pass_around = _skip
+ test_cannot_be_virtual = _skip
+ test_ll_fixed_setitem_fast = _skip
More information about the Pypy-commit
mailing list