From 1a29675c5e5eafc52c8a41181193ec1af0d907ea Mon Sep 17 00:00:00 2001 From: Enrico Joerns Date: Tue, 10 Oct 2023 12:39:55 +0200 Subject: [PATCH] docs: contributing: adapt testing description to meson Signed-off-by: Enrico Joerns --- docs/contributing.rst | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/contributing.rst b/docs/contributing.rst index 594ab3977..c75b6b42f 100644 --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -85,14 +85,18 @@ Test Framework `_. 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.