aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2017-03-13 08:50:04 +0100
committerArmin Rigo <arigo@tunes.org>2017-03-13 08:50:04 +0100
commitbf3371afd96e9a7bee5f4ef191b3af8add9fdef7 (patch)
tree441f35bc2e5090f5b7a96a7e133b076455b63817 /testrunner
parentfix (diff)
parentMake these files executable (diff)
downloadpypy-bf3371afd96e9a7bee5f4ef191b3af8add9fdef7.tar.gz
pypy-bf3371afd96e9a7bee5f4ef191b3af8add9fdef7.tar.bz2
pypy-bf3371afd96e9a7bee5f4ef191b3af8add9fdef7.zip
hg merge default
Diffstat (limited to 'testrunner')
-rwxr-xr-xtestrunner/app_level_tests.py31
-rwxr-xr-xtestrunner/lib_python_tests.py29
-rwxr-xr-xtestrunner/pypyjit_tests.py29
3 files changed, 89 insertions, 0 deletions
diff --git a/testrunner/app_level_tests.py b/testrunner/app_level_tests.py
new file mode 100755
index 0000000000..eb8215918a
--- /dev/null
+++ b/testrunner/app_level_tests.py
@@ -0,0 +1,31 @@
+#!/usr/bin/env python
+"""
+This is what the buildbot runs to execute the app-level tests
+on top of pypy-c.
+"""
+
+import sys, os
+import subprocess
+
+rootdir = os.path.dirname(os.path.dirname(os.path.abspath(sys.argv[0])))
+os.environ['PYTHONPATH'] = rootdir
+os.environ['PYTEST_PLUGINS'] = ''
+
+popen = subprocess.Popen(
+ [sys.executable, "testrunner/runner.py",
+ "--logfile=pytest-A.log",
+ "--config=pypy/pytest-A.cfg",
+ "--config=pypy/pytest-A.py",
+ "--config=~/machine-A_cfg.py",
+ "--root=pypy", "--timeout=3600",
+ ] + sys.argv[1:],
+ cwd=rootdir)
+
+try:
+ ret = popen.wait()
+except KeyboardInterrupt:
+ popen.kill()
+ print "\ninterrupted"
+ ret = 1
+
+sys.exit(ret)
diff --git a/testrunner/lib_python_tests.py b/testrunner/lib_python_tests.py
new file mode 100755
index 0000000000..a01492016f
--- /dev/null
+++ b/testrunner/lib_python_tests.py
@@ -0,0 +1,29 @@
+#!/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])))
+os.environ['PYTHONPATH'] = rootdir
+os.environ['PYTEST_PLUGINS'] = ''
+
+popen = subprocess.Popen(
+ [sys.executable, "pypy/test_all.py",
+ "--pypy=pypy/goal/pypy3-c",
+ "--timeout=3600",
+ "--resultlog=cpython.log", "lib-python",
+ ] + sys.argv[1:],
+ 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
index 0000000000..313fe09167
--- /dev/null
+++ b/testrunner/pypyjit_tests.py
@@ -0,0 +1,29 @@
+#!/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])))
+os.environ['PYTHONPATH'] = rootdir
+os.environ['PYTEST_PLUGINS'] = ''
+
+popen = subprocess.Popen(
+ [sys.executable, "pypy/test_all.py",
+ "--pypy=pypy/goal/pypy3-c",
+ "--resultlog=pypyjit_new.log",
+ "pypy/module/pypyjit/test_pypy_c",
+ ] + sys.argv[1:],
+ cwd=rootdir)
+
+try:
+ ret = popen.wait()
+except KeyboardInterrupt:
+ popen.kill()
+ print "\ninterrupted"
+ ret = 1
+
+sys.exit(ret)