aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/tests/run-tests.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-10-18doc: use https:// for www.gnu.orgDaniel Kahn Gillmor1-1/+1
-- Signed-off-by: Daniel Kahn Gillmor <[email protected]>
2018-08-18Python bindings tests: Near PEP8 complianceBen McGinnes1-34/+59
* PEP8 compliance for the vast majoeity of the tests.
2017-04-11python: fix run-tests missing python_libdirAlon Bar-Lev1-1/+3
* lang/python/tests/run-tests.py: Set python_libdir if --python-libdir is set. Signed-off-by: Alon Bar-Lev <[email protected]>
2017-04-10python: Support alternatate libdir for testsAlon Bar-Lev1-10/+15
* lang/python/tests/run-tests.py: Add --python-libdir optional parameter. -- This will make the python tests usable for downstream that build python module outside of autotools build system. Signed-off-by: Alon Bar-Lev <[email protected]>
2017-04-10python: Remove usage of PYTHON_VERSIONSAlon Bar-Lev1-2/+2
* configure.ac: Remove PYTHON_VERSIONS subst. * lang/python/Makefile.am: Use basename of python as builddir prefix. * lang/python/tests/run-tests.py: Likewise. -- Two variables needs be at sync PYTHONS and PYTHON_VERSIONS, these may go out of sync in some cases, for example in Gentoo where default python is 3.4 we get: PYTHON='/usr/bin/python2' PYTHONS='/usr/bin/python /usr/bin/python2' PYTHON_VERSIONS='2.7 3.4' We can use the basename of the python interpreter to achieve similar effect without having to sync indexes between these two variables. Signed-off-by: Alon Bar-Lev <[email protected]>
2017-04-05python: Generate files into build directoryAlon Bar-Lev1-1/+0
* lang/python/setup.py.in: Generate files within BuildExtFirstHack adjust build flags at this point instead of global. * lang/python/Makefile.am: Remove logic of separate source directory per python version in favor of build directory. * lang/python/tests/run-tests.py: Adjust build directory location. -- Generate files into build directory, leaving the source directory clean. Use the same source directory for multiple python version build. Result of 'prepare' target is a standard distutil layout that can be used easily by downstream to build all python targets in-place. Signed-off-by: Alon Bar-Lev <[email protected]>
2017-03-30python: Don't treat skipped tests as errorAndre Heinecke1-1/+1
* lang/python/tests/run-tests.py (failed): Don't count skipped tests for the return code.
2017-03-14python: Make error message more helpful.Justus Winter1-6/+11
* lang/python/tests/run-tests.py: Make the error message shown when we cannot locate the python module in the build tree more helpful. Signed-off-by: Justus Winter <[email protected]>
2017-02-13python: Use one copy of the source tree per Python version.Justus Winter1-1/+3
* lang/python/Makefile.am (copystamp): Create one copy per Python version. (all-local): Adapt. (clean-local): Likewise. (install-exec-local): Likewise. * lang/python/tests/run-tests.py: Likewise. -- Currently, we use one copy of the Python module's source to build for all Python versions. This is problematic, because SWIG writes a wrapper file into the source tree. Currently, this file works with both Python 2 and 3, but this is purely by chance. Improve the situation by creating one copy per Python version so that SWIG can write version-specific code into each copy. Signed-off-by: Justus Winter <[email protected]>
2017-01-03python: Improve compatibility with Scheme tests.Justus Winter1-0/+2
* lang/python/tests/run-tests.py: Add stub --parallel option. Signed-off-by: Justus Winter <[email protected]>
2017-01-03python: Add a switch '--quiet' to the test runner.Justus Winter1-5/+12
* lang/python/tests/run-tests.py: Add and honor a switch '--quiet'. This way we can use this script to run Python tests one by one without the noise, and the script will setup the necessary environment for us. Signed-off-by: Justus Winter <[email protected]>
2016-09-14python: Build for both Python2 and Python3.Justus Winter1-0/+90
* NEWS: Update. * configure.ac: Check for multiple Python versions. * lang/python/Makefile.am: Build and install for both Python versions. * lang/python/tests/Makefile.am: Test both versions. * lang/python/tests/run-tests.py: New test runner. Signed-off-by: Justus Winter <[email protected]>