Browse Source

doc: we can disable GL tests now.

pull/8/head
Vladimír Vondruš 7 years ago
parent
commit
73087f3b3f
  1. 2
      doc/python/magnum.rst
  2. 13
      doc/python/pages/building.rst

2
doc/python/magnum.rst

@ -29,6 +29,8 @@
:language: c++ :language: c++
.. role:: py(code) .. role:: py(code)
:language: py :language: py
.. role:: sh(code)
:language: sh
.. doctest setup .. doctest setup
>>> from magnum import * >>> from magnum import *

13
doc/python/pages/building.rst

@ -154,16 +154,17 @@ running them is then a matter of:
cd src/python/magnum cd src/python/magnum
python -m unittest python -m unittest
.. block-warning:: Subject to change .. block-default:: Disabling GL tests
If the tests detect that one of `platform.WindowlessApplication`\ s is If the tests detect that one of
present, GL tests (suffixed with ``_gl``) will be run as well. Currently `platform.WindowlessApplication <platform.egl.WindowlessApplication>`\ s is
there's no way to blacklist them if windowless application implementations present, GL tests (suffixed with ``_gl``) will be run as well. In order to
are compiled, you can only whitelist-run the remaining tests: disable them (for example when running on a headless CI), set the
:sh:`$MAGNUM_SKIP_GL_TESTS` environment variable to ``ON``:
.. code:: sh .. code:: sh
python -m unittest test.test_gl test.test_math # test.test_gl_gl is a GL test MAGNUM_SKIP_GL_TESTS=ON python -m unittest
For code coverage, `coverage.py <https://coverage.readthedocs.io/>`_ is used. For code coverage, `coverage.py <https://coverage.readthedocs.io/>`_ is used.
Get it via ``pip`` or as a system package. Get it via ``pip`` or as a system package.

Loading…
Cancel
Save