diff options
author | Qyriad <qyriad@qyriad.me> | 2024-03-21 15:38:11 -0600 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-03-26 00:43:33 +0100 |
commit | e1ffe56793be79dfea203121ecafff3d0baa29ba (patch) | |
tree | d337477251bc4187820ba0388c63e1c4d6a9c5f5 /meson.options | |
parent | d3d7489571baeb651d3843dba3b638621694c174 (diff) |
meson: implement unit tests
Unit tests can be run with `meson test -C build --suite check`.
`--suite check` is optional, as right now that's the only test suite,
but when functional tests are added those will be in a separate suite.
Change-Id: I7f22f1cde4b489b3cdb5f9a36a544f0c409fcc1f
Diffstat (limited to 'meson.options')
-rw-r--r-- | meson.options | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meson.options b/meson.options index 50b1d8553..4e8323689 100644 --- a/meson.options +++ b/meson.options @@ -19,6 +19,18 @@ option('sandbox-shell', type : 'string', value : 'busybox', description : 'path to a statically-linked shell to use as /bin/sh in sandboxes (usually busybox)', ) +option('enable-tests', type : 'boolean', value : true, + description : 'whether to enable tests or not (requires rapidcheck and gtest)', +) + +option('tests-color', type : 'boolean', value : true, + description : 'set to false to disable color output in gtest', +) + +option('tests-brief', type : 'boolean', value : false, + description : 'set to true for shorter tests output', +) + option('store-dir', type : 'string', value : '/nix/store', description : 'path of the Nix store', ) |