[pypy-svn] r37415 - pypy/dist/pypy/jit/codegen/i386/demo
arigo at codespeak.net
arigo at codespeak.net
Sat Jan 27 01:01:23 CET 2007
Author: arigo
Date: Sat Jan 27 01:01:21 2007
New Revision: 37415
Added:
pypy/dist/pypy/jit/codegen/i386/demo/autorun.py (contents, props changed)
Log:
Auto test runner. Runs test_random_function forever,
until it crashes on a failure :-)
Added: pypy/dist/pypy/jit/codegen/i386/demo/autorun.py
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/jit/codegen/i386/demo/autorun.py Sat Jan 27 01:01:21 2007
@@ -0,0 +1,9 @@
+import random
+from pypy.jit.codegen.i386.demo import test_random
+from pypy.jit.codegen.i386.demo import conftest as demo_conftest
+
+
+def test_forever():
+ while True:
+ demo_conftest.option.randomseed = random.randrange(0, 100000)
+ test_random.test_random_function()
More information about the Pypy-commit
mailing list