diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-01-18 17:08:26 +0100 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-01-19 14:03:53 +0100 |
commit | 2ccef77f240149891fe9e8f557c7afc951a91839 (patch) | |
tree | f237d71ad3d4676af39d563e57ecf371a3459eee /docs/devguide | |
parent | 812cdbfec0c8c9866c339a5eb01268672514d447 (diff) | |
download | pygobject-2ccef77f240149891fe9e8f557c7afc951a91839.tar.gz |
setup.py: add a "test" command which is equal to "make check" with autotools
Adds a "build_tests" command which builds all resources required for testing.
It has some simple dependency awareness and only rebuilds if any of the direct
sources have changed. Passing -f/--force will force a rebuild.
Adds a new "test" command which builds the main extension module in the source
directory, runs "build_tests" and finally runs all tests.
Extends the "distcheck" command to run the tests after extracting the source
distribution and run the distcheck command in the gitlab CI script.
Only tested on Linux.
Diffstat (limited to 'docs/devguide')
-rw-r--r-- | docs/devguide/building_testing.rst | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/docs/devguide/building_testing.rst b/docs/devguide/building_testing.rst index 87f86000..4ec792a5 100644 --- a/docs/devguide/building_testing.rst +++ b/docs/devguide/building_testing.rst @@ -2,8 +2,8 @@ Building & Testing ================== -Building with Autotools ------------------------ +Using Autotools +--------------- Building for Python 2: @@ -20,19 +20,6 @@ Building for Python 3: make -Building with Setuptools ------------------------- - -Building in the source directory: - -:: - - python setup.py buildext --inplace - - -Testing -------- - To run the test suite:: make check @@ -54,3 +41,14 @@ To executes all the tests in valgrind:: To execute pyflakes and pep8 tests:: make check.quality + + +Using Setuptools +---------------- + +Building and testing in the source directory: + +:: + + python2 setup.py test + python3 setup.py test |