From e1ffe56793be79dfea203121ecafff3d0baa29ba Mon Sep 17 00:00:00 2001 From: Qyriad Date: Thu, 21 Mar 2024 15:38:11 -0600 Subject: 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 --- meson.options | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'meson.options') 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', ) -- cgit v1.2.3