[pypy-svn] r35243 - in pypy/dist/pypy/jit/codegen/llvm: . test

ericvrp at codespeak.net ericvrp at codespeak.net
Mon Dec 4 10:53:26 CET 2006


Author: ericvrp
Date: Mon Dec  4 10:53:20 2006
New Revision: 35243

Added:
   pypy/dist/pypy/jit/codegen/llvm/conftest.py   (contents, props changed)
   pypy/dist/pypy/jit/codegen/llvm/rgenop.py   (contents, props changed)
   pypy/dist/pypy/jit/codegen/llvm/test/__init__.py   (contents, props changed)
   pypy/dist/pypy/jit/codegen/llvm/test/test_genc_exception.py   (contents, props changed)
   pypy/dist/pypy/jit/codegen/llvm/test/test_genc_tl.py   (contents, props changed)
   pypy/dist/pypy/jit/codegen/llvm/test/test_genc_ts.py   (contents, props changed)
   pypy/dist/pypy/jit/codegen/llvm/test/test_rgenop.py   (contents, props changed)
Log:
codegen/llvm borrows tests from codegen/i386. All these tests are skipped though!


Added: pypy/dist/pypy/jit/codegen/llvm/conftest.py
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/jit/codegen/llvm/conftest.py	Mon Dec  4 10:53:20 2006
@@ -0,0 +1,17 @@
+import py
+from pypy.jit.codegen import detect_cpu
+
+#XXX Should check here if llvm supports a JIT for this platform (perhaps using lli?)
+
+#class Directory(py.test.collect.Directory):
+#
+#    def run(self):
+#        try:
+#            processor = detect_cpu.autodetect()
+#        except detect_cpu.ProcessorAutodetectError, e:
+#            py.test.skip(str(e))
+#        else:
+#            if processor != 'i386':
+#                py.test.skip('detected a %r CPU' % (processor,))
+#
+#        return super(Directory, self).run()

Added: pypy/dist/pypy/jit/codegen/llvm/rgenop.py
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/jit/codegen/llvm/rgenop.py	Mon Dec  4 10:53:20 2006
@@ -0,0 +1,8 @@
+from pypy.jit.codegen.model import AbstractRGenOp, GenLabel, GenBuilder
+from pypy.jit.codegen.model import GenVar, GenConst, CodeGenSwitch
+
+class RLLVMGenOp(AbstractRGenOp):
+    pass
+
+global_rgenop = RLLVMGenOp()
+#XXX RLLVMGenOp.constPrebuiltGlobal = global_rgenop.genconst

Added: pypy/dist/pypy/jit/codegen/llvm/test/__init__.py
==============================================================================

Added: pypy/dist/pypy/jit/codegen/llvm/test/test_genc_exception.py
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/jit/codegen/llvm/test/test_genc_exception.py	Mon Dec  4 10:53:20 2006
@@ -0,0 +1,13 @@
+import py
+from pypy.jit.timeshifter.test import test_exception
+from pypy.jit.codegen.llvm.test.test_genc_ts import LLVMTimeshiftingTestMixin
+
+py.test.skip("WIP")
+
+class TestException(LLVMTimeshiftingTestMixin,
+                    test_exception.TestException):
+
+    # for the individual tests see
+    # ====> ../../../timeshifter/test/test_exception.py
+
+    pass

Added: pypy/dist/pypy/jit/codegen/llvm/test/test_genc_tl.py
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/jit/codegen/llvm/test/test_genc_tl.py	Mon Dec  4 10:53:20 2006
@@ -0,0 +1,14 @@
+import py
+from pypy.jit.timeshifter.test import test_tl
+from pypy.jit.codegen.llvm.test.test_genc_ts import LLVMTimeshiftingTestMixin
+
+
+py.test.skip("WIP")
+
+class TestTLR(LLVMTimeshiftingTestMixin,
+              test_tl.TestTL):
+
+    # for the individual tests see
+    # ====> ../../../timeshifter/test/test_tl.py
+
+    pass

Added: pypy/dist/pypy/jit/codegen/llvm/test/test_genc_ts.py
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/jit/codegen/llvm/test/test_genc_ts.py	Mon Dec  4 10:53:20 2006
@@ -0,0 +1,19 @@
+import py
+from pypy.jit.codegen.i386.test.test_genc_ts import I386TimeshiftingTestMixin
+from pypy.jit.timeshifter.test import test_timeshift
+from pypy.jit.codegen.llvm.rgenop import RLLVMGenOp
+
+
+py.test.skip("WIP")
+
+class LLVMTimeshiftingTestMixin(I386TimeshiftingTestMixin):
+    RGenOp = RLLVMGenOp
+
+class TestTimeshiftLLVM(LLVMTimeshiftingTestMixin,
+                        test_timeshift.TestTimeshift):
+
+    # for the individual tests see
+    # ====> ../../../timeshifter/test/test_timeshift.py
+
+    pass
+

Added: pypy/dist/pypy/jit/codegen/llvm/test/test_rgenop.py
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/jit/codegen/llvm/test/test_rgenop.py	Mon Dec  4 10:53:20 2006
@@ -0,0 +1,9 @@
+import py
+from pypy.jit.codegen.llvm.rgenop import RLLVMGenOp
+from pypy.jit.codegen.test.rgenop_tests import AbstractRGenOpTests
+
+
+py.test.skip("WIP")
+
+class TestRLLVMGenop(AbstractRGenOpTests):
+    RGenOp = RLLVMGenOp



More information about the Pypy-commit mailing list