[pypy-commit] pypy ppc-jit-backend: import test_float tests into PPC backend

bivab noreply at buildbot.pypy.org
Wed Jul 25 16:12:22 CEST 2012


Author: David Schneider <david.schneider at picle.org>
Branch: ppc-jit-backend
Changeset: r56447:44f5bcf4a5c8
Date: 2012-07-25 07:04 -0700
http://bitbucket.org/pypy/pypy/changeset/44f5bcf4a5c8/

Log:	import test_float tests into PPC backend

diff --git a/pypy/jit/backend/x86/test/test_float.py b/pypy/jit/backend/ppc/test/test_float.py
copy from pypy/jit/backend/x86/test/test_float.py
copy to pypy/jit/backend/ppc/test/test_float.py
--- a/pypy/jit/backend/x86/test/test_float.py
+++ b/pypy/jit/backend/ppc/test/test_float.py
@@ -1,9 +1,13 @@
 
 import py
-from pypy.jit.backend.x86.test.test_basic import Jit386Mixin
+from pypy.jit.backend.ppc.test.support import JitPPCMixin
 from pypy.jit.metainterp.test.test_float import FloatTests
+from pypy.jit.backend.detect_cpu import getcpuclass
 
-class TestFloat(Jit386Mixin, FloatTests):
+CPU = getcpuclass()
+class TestFloat(JitPPCMixin, FloatTests):
     # for the individual tests see
     # ====> ../../../metainterp/test/test_float.py
-    pass
+    if not CPU.supports_singlefloats:
+        def test_singlefloat(self):
+            py.test.skip('requires singlefloats')


More information about the pypy-commit mailing list