<cfbolz>
storchaka: where python is a pypy binary?
<cfbolz>
a simple way to run them is to use pypy -m test.test_bz2
<storchaka>
cfbolz: no, python is a system Python2.7 binary
fotis has quit [Ping timeout: 240 seconds]
<storchaka>
$ pypy -m test.test_bz2
<storchaka>
/usr/bin/pypy: No module named test.test_bz2
<storchaka>
I want to run tests not with system PyPy, but with just built PyPy from the source tree
<storchaka>
I finally found the PyPy binary -- it is ./pypy/goal/pypy3-c. But seems it is never documented.
fotis has joined #pypy
<cfbolz>
storchaka: yeah, our dev guide needs a tune up, sorry
<cfbolz>
storchaka: what are you working on?
<storchaka>
I am going to port some PyPy changes in the Python test to upstream. I want to test what of them are necessary and whether alternate solutions work.
<cfbolz>
storchaka: right, that's fantastic, thanks a lot! If I can help with anything, let me know
<mattip>
storchaka: thanks. Can you suggest where we should change documentation to make onboarding easier?
<mattip>
I run the stdlib tests with
<mattip>
./pypy3-c lib-python3/test/test_bz2.py
<cfbolz>
storchaka: going forward, we should really try to submit some of these changes more proactively from our side
<mattip>
is there a stale link somewhere pointing to that page?
<storchaka>
mattip: Actually I got to .../contributing.html#testing. .../getting-started-dev.html was mentioned by LarstiQ above. They contents are similar, so I confused them.
<mattip>
LarstiQ ^^^
Julian has joined #pypy
Julian has quit [Ping timeout: 252 seconds]
Julian has joined #pypy
<mattip>
storchaka: I updated the docs. Does this make more sense now?
gef has quit [Read error: Connection reset by peer]
gef has joined #pypy
<storchaka>
mattip: The main problem was that pypy3 runs system PyPy. How to run PyPy from the source tree? It is not documented
Atque has quit [Quit: ...]
<storchaka>
In CPython I checkout sources, build Python with ./configure and make, and run tests with "make test". All steps are described in README.rst. It describes also how to run only selected tests.
<storchaka>
In PyPy I can build with make, but all instructions for running tests run system CPython or PyPy.
fotis has quit [Ping timeout: 250 seconds]
storchaka has quit [Quit: Konversation terminated!]
stkrdknmibalz has joined #pypy
<mattip>
hmm. In PyPy there are many different kinds of tests:
<mattip>
"untranslated" that compile pieces of RPython and then test that mini-compiler
<mattip>
"app-level" that can test untranslated or can test CPython or can test translated PyPy
<mattip>
and cpython stdlib (and some lib_pypy ones for cffi-extensions) that can only be run post-translation
<mattip>
most of our energy goes into the untranslated tests