[pypy-svn] r36404 - in pypy/dist/pypy/jit/codegen: i386/test ppc ppc/test

mwh at codespeak.net mwh at codespeak.net
Wed Jan 10 14:01:10 CET 2007


Author: mwh
Date: Wed Jan 10 14:01:09 2007
New Revision: 36404

Added:
   pypy/dist/pypy/jit/codegen/ppc/test/test_interp_ts.py
Modified:
   pypy/dist/pypy/jit/codegen/i386/test/test_interp_ts.py
   pypy/dist/pypy/jit/codegen/ppc/conftest.py
Log:
add test_interp_ts for ppc, skipped unless you pass --run-interp-tests to
py.test


Modified: pypy/dist/pypy/jit/codegen/i386/test/test_interp_ts.py
==============================================================================
--- pypy/dist/pypy/jit/codegen/i386/test/test_interp_ts.py	(original)
+++ pypy/dist/pypy/jit/codegen/i386/test/test_interp_ts.py	Wed Jan 10 14:01:09 2007
@@ -1,10 +1,11 @@
 import os, py
-py.test.skip("these tests take ages and are not really useful")
 from pypy.annotation import model as annmodel
 from pypy.jit.timeshifter.test import test_timeshift
 from pypy.jit.codegen.i386.rgenop import RI386GenOp, IntConst
 from pypy.jit.codegen.i386.test.test_operation import RGenOpPacked
 
+def setup_module(mod):
+    py.test.skip("these tests take ages and are not really useful")
 
 class Whatever(object):
     def __eq__(self, other):

Modified: pypy/dist/pypy/jit/codegen/ppc/conftest.py
==============================================================================
--- pypy/dist/pypy/jit/codegen/ppc/conftest.py	(original)
+++ pypy/dist/pypy/jit/codegen/ppc/conftest.py	Wed Jan 10 14:01:09 2007
@@ -21,6 +21,9 @@
         Option('--trap', action="store_true", default=False,
                dest="trap",
                help=""),
+        Option('--run-interp-tests', action="store_true", default=False,
+               dest="run_interp_tests",
+               help=""),
         Option('--debug-print', action="store_true", default=False,
                dest="debug_print",
                help=""))

Added: pypy/dist/pypy/jit/codegen/ppc/test/test_interp_ts.py
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/jit/codegen/ppc/test/test_interp_ts.py	Wed Jan 10 14:01:09 2007
@@ -0,0 +1,21 @@
+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.TestTimeshift):
+
+    # for the individual tests see
+    # ====> ../../../timeshifter/test/test_timeshift.py
+
+    pass
+



More information about the Pypy-commit mailing list