From 718d8d0ebc478adc1f4310e63b8bd4890d0fe3b5 Mon Sep 17 00:00:00 2001 From: Armin Rigo Date: Mon, 13 Mar 2017 08:23:08 +0100 Subject: 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). --- testrunner/lib_python_tests.py | 26 ++++++++++++++++++++++++++ testrunner/pypyjit_tests.py | 25 +++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100755 testrunner/lib_python_tests.py create mode 100755 testrunner/pypyjit_tests.py (limited to 'testrunner') diff --git a/testrunner/lib_python_tests.py b/testrunner/lib_python_tests.py new file mode 100755 index 0000000000..2fcbccf187 --- /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 index 0000000000..624c67c337 --- /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) -- cgit v1.2.3-65-gdbad