Enable unit tests by default

Also documents how to run the tests.

Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
pull/210/head
Jim Ramsay 2023-01-02 07:47:47 -05:00
parent 7c8c52dfb2
commit 14615ae3b0
3 changed files with 13 additions and 1 deletions

View File

@ -29,6 +29,13 @@ as far as coding style is concererned, with the following exceptions:
a lot of code that uses aligned argument lists in the project, but I have a lot of code that uses aligned argument lists in the project, but I have
come to the conclusion that these alignments are not very nice to maintain. come to the conclusion that these alignments are not very nice to maintain.
## Unit Tests
wayvnc has a small but growing set of unit tests, which are run on every GitHub PR. To run them locally, do the following:
```bash
meson test -C build
```
## No Brown M&Ms ## No Brown M&Ms
All pull requests must contain the following sentence in the description: All pull requests must contain the following sentence in the description:

View File

@ -103,6 +103,11 @@ meson build
ninja -C build ninja -C build
``` ```
To run the unit tests:
```
meson test -C build
```
## Running ## Running
Wayvnc can be run from the build directory like so: Wayvnc can be run from the build directory like so:
``` ```

View File

@ -6,5 +6,5 @@ option('man-pages', type: 'feature', value: 'auto',
description: 'Generate and install man pages') description: 'Generate and install man pages')
option('systemtap', type: 'boolean', value: false, option('systemtap', type: 'boolean', value: false,
description: 'Enable tracing using sdt') description: 'Enable tracing using sdt')
option('tests', type: 'boolean', value: false, option('tests', type: 'boolean', value: true,
description: 'Build unit tests') description: 'Build unit tests')