[pypy-svn] r67997 - in pypy/trunk/pypy/jit/backend: . x86/test
arigo at codespeak.net
arigo at codespeak.net
Tue Sep 29 21:06:02 CEST 2009
Author: arigo
Date: Tue Sep 29 21:05:58 2009
New Revision: 67997
Added:
pypy/trunk/pypy/jit/backend/x86/test/conftest.py (contents, props changed)
Modified:
pypy/trunk/pypy/jit/backend/detect_cpu.py
Log:
- skip x86 tests on non-x86 platforms.
- print the cpu name found by detect_cpu when running it.
Modified: pypy/trunk/pypy/jit/backend/detect_cpu.py
==============================================================================
--- pypy/trunk/pypy/jit/backend/detect_cpu.py (original)
+++ pypy/trunk/pypy/jit/backend/detect_cpu.py Tue Sep 29 21:05:58 2009
@@ -52,3 +52,6 @@
else:
raise ProcessorAutodetectError, "unsupported cpu '%s'" % backend_name
return CPU
+
+if __name__ == '__main__':
+ print autodetect()
Added: pypy/trunk/pypy/jit/backend/x86/test/conftest.py
==============================================================================
--- (empty file)
+++ pypy/trunk/pypy/jit/backend/x86/test/conftest.py Tue Sep 29 21:05:58 2009
@@ -0,0 +1,9 @@
+import py
+from pypy.jit.backend import detect_cpu
+
+class Directory(py.test.collect.Directory):
+ def collect(self):
+ cpu = detect_cpu.autodetect()
+ if cpu != 'i386':
+ py.test.skip("x86 directory skipped: cpu is %r" % (cpu,))
+ return super(Directory, self).collect()
More information about the Pypy-commit
mailing list