mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +00:00

Catch2 is a multi-paradigm test framework for C++. It is primarily distributed as a single header file, very easy and simple to adopt this to thorvg project. This patch introduces catch2 infrastsructure and one prototype as a sample. You can refer "testInitializer.cpp", how to add unit test! while ignoring else files such as "catch2.hpp", "testMain.cpp" Also, enable Unit-tests with meson option when you change any thorvg code. $meson build -Dtests=true. launch tvgUnitTest in the build result then verify 100% coverage before submitting any patches.
44 lines
954 B
Meson
44 lines
954 B
Meson
option('engines',
|
|
type: 'array',
|
|
choices: ['sw', 'gl'],
|
|
value: ['sw'],
|
|
description: 'Enable Rasterizer Engine in thorvg')
|
|
|
|
option('loaders',
|
|
type: 'array',
|
|
choices: ['', 'svg', 'png'],
|
|
value: ['svg'],
|
|
description: 'Enable File Loaders in thorvg')
|
|
|
|
option('vectors',
|
|
type: 'array',
|
|
choices: ['', 'avx'],
|
|
value: [''],
|
|
description: 'Enable CPU Vectorization(SIMD) in thorvg')
|
|
|
|
option('bindings',
|
|
type: 'array',
|
|
choices: ['', 'capi'],
|
|
value: [''],
|
|
description: 'Enable C API binding')
|
|
|
|
option('tools',
|
|
type: 'array',
|
|
choices: ['', 'svg2png'],
|
|
value: [''],
|
|
description: 'Enable building thorvg tools')
|
|
|
|
option('examples',
|
|
type: 'boolean',
|
|
value: false,
|
|
description: 'Enable building examples')
|
|
|
|
option('tests',
|
|
type: 'boolean',
|
|
value: false,
|
|
description: 'Enable building Unit Tests')
|
|
|
|
option('log',
|
|
type: 'boolean',
|
|
value: false,
|
|
description: 'Enable log message')
|