[pypy-commit] pypy default: Check in here test runners for the lib-python and the pypyjit steps

arigo pypy.commits at gmail.com
Mon Mar 13 03:23:36 EDT 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r90643:6790d94fb46a
Date: 2017-03-13 08:23 +0100
http://bitbucket.org/pypy/pypy/changeset/6790d94fb46a/

Log:	Check in here test runners for the lib-python and the pypyjit steps
	of buildbot. Will then fix buildbot to execute these. It allows us
	to customize the steps on py3.5.

	If you are running buildbot on other branches, you need to copy
	these two files too (or merge default).

diff --git a/testrunner/lib_python_tests.py b/testrunner/lib_python_tests.py
new file mode 100755
--- /dev/null
+++ b/testrunner/lib_python_tests.py
@@ -0,0 +1,26 @@
+#!/usr/bin/env python
+"""
+This is what the buildbot runs to execute the lib-python tests
+on top of pypy-c.
+"""
+
+import sys, os
+import subprocess
+
+rootdir = os.path.dirname(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+popen = subprocess.Popen(
+    [sys.executable, "pypy/test_all.py",
+                     "--pypy=pypy/goal/pypy-c",
+                     "--timeout=3600",
+                     "--resultlog=cpython.log", "lib-python"],
+    cwd=rootdir)
+
+try:
+    ret = popen.wait()
+except KeyboardInterrupt:
+    popen.kill()
+    print "\ninterrupted"
+    ret = 1
+
+sys.exit(ret)
diff --git a/testrunner/pypyjit_tests.py b/testrunner/pypyjit_tests.py
new file mode 100755
--- /dev/null
+++ b/testrunner/pypyjit_tests.py
@@ -0,0 +1,25 @@
+#!/usr/bin/env python
+"""
+This is what the buildbot runs to execute the pypyjit tests
+on top of pypy-c.
+"""
+
+import sys, os
+import subprocess
+
+rootdir = os.path.dirname(os.path.dirname(os.path.abspath(sys.argv[0])))
+
+popen = subprocess.Popen(
+    ["pypy/goal/pypy-c", "pypy/test_all.py",
+                         "--resultlog=pypyjit_new.log",
+                         "pypy/module/pypyjit/test_pypy_c"],
+    cwd=rootdir)
+
+try:
+    ret = popen.wait()
+except KeyboardInterrupt:
+    popen.kill()
+    print "\ninterrupted"
+    ret = 1
+
+sys.exit(ret)


More information about the pypy-commit mailing list