[pypy-svn] r54524 - pypy/dist/pypy/translator/goal

arigo at codespeak.net arigo at codespeak.net
Wed May 7 13:18:50 CEST 2008


Author: arigo
Date: Wed May  7 13:18:49 2008
New Revision: 54524

Modified:
   pypy/dist/pypy/translator/goal/gcbench.py
Log:
Command-line arguments can be given (a list of tree depths to run the test with).


Modified: pypy/dist/pypy/translator/goal/gcbench.py
==============================================================================
--- pypy/dist/pypy/translator/goal/gcbench.py	(original)
+++ pypy/dist/pypy/translator/goal/gcbench.py	Wed May  7 13:18:49 2008
@@ -142,4 +142,9 @@
 
 
 if __name__ == '__main__':
-    main()
+    import sys
+    if len(sys.argv) > 1:
+        depths = [int(s) for s in sys.argv[1:]]
+        main(depths)
+    else:
+        main()



More information about the Pypy-commit mailing list