Debian Codegraph @

testrunner/pypyjit_tests.py

raw symbols SCIP
1 #!/usr/bin/env python
2 """
3 This is what the buildbot runs to execute the pypyjit tests
4 on top of pypy-c.
5 """
6
7 import json
8 import sys, os
9 import subprocess
10
11 rootdir = os.path.dirname(os.path.dirname(os.path.abspath(sys.argv[0])))
12 os.environ['PYTHONPATH'] = rootdir
13 os.environ['PYTEST_PLUGINS'] = ''
14
15 config_json = subprocess.check_output([sys.executable, 'testrunner/get_info.py'])
16 config_dict = json.loads(config_json)
17 pypyopt = "--pypy=%s" % config_dict['target_path']
18
19 popen = subprocess.Popen(
20 [sys.executable, "pypy/test_all.py",
21 pypyopt,
22 "--resultlog=pypyjit_new.log",
23 "pypy/module/pypyjit/test_pypy_c",
24 ] + sys.argv[1:],
25 cwd=rootdir)
26
27 try:
28 ret = popen.wait()
29 except KeyboardInterrupt:
30 popen.kill()
31 print "\ninterrupted"
32 ret = 1
33
34 sys.exit(ret)