Skip to content

Commit

Permalink
docs: contributing: adapt testing description to meson
Browse files Browse the repository at this point in the history
Signed-off-by: Enrico Joerns <[email protected]>
  • Loading branch information
ejoerns committed Oct 10, 2023
1 parent 0689b01 commit 1a29675
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,18 @@ Test Framework <https://developer.gnome.org/glib/stable/glib-Testing.html>`_.
All tests reside in the ``test/`` folder and are named according to the module
they test (``test/bundle.c`` contains tests for ``src/bundle.c``).

To build and run an individual test, do::
The tests are built by default. To explicitly switch them on or off in meson,
use ``-Dtest=`` option::

meson setup build -Dtests=true

You can run each compiled test individually::

make test/bundle.test
./test/bundle.test

To run all tests, run::

make check
meson test -C build

This will also run the sharness CLI tests mentioned above.

Expand Down

0 comments on commit 1a29675

Please sign in to comment.