Enable unit tests by default
Also documents how to run the tests. Signed-off-by: Jim Ramsay <i.am@jimramsay.com>pull/210/head
parent
7c8c52dfb2
commit
14615ae3b0
|
@ -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:
|
||||||
|
|
|
@ -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:
|
||||||
```
|
```
|
||||||
|
|
|
@ -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')
|
||||||
|
|
Loading…
Reference in New Issue