diff options
author | Fabrice Fontaine <fontaine.fabrice@gmail.com> | 2022-06-01 06:48:23 +0000 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2022-06-01 11:55:27 +0200 |
commit | 1b0be1d5bea76c1d02a7afebc431844e933ed4a8 (patch) | |
tree | 2f6056d3a19a46146960167f7d6db8d59e327f25 | |
parent | 340872d8cbda8d654e419463d2cacfb621446457 (diff) | |
download | libmediaart-1b0be1d5bea76c1d02a7afebc431844e933ed4a8.tar.gz |
meson: add tests option
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
-rw-r--r-- | meson_options.txt | 2 | ||||
-rw-r--r-- | tests/meson.build | 14 |
2 files changed, 10 insertions, 6 deletions
diff --git a/meson_options.txt b/meson_options.txt index c97c054..3146b1f 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -3,6 +3,8 @@ option('image_library', type: 'combo', choices: ['auto', 'gdk-pixbuf', 'qt4', 'q option('introspection', type : 'boolean', value : 'true', description : 'Enable / disable the GObject-Introspection integration') option('vapi', type : 'boolean', value : 'true') +option('tests', type : 'boolean', value : 'true', + description : 'Enable / disable unit tests') option('gtk_doc', type: 'boolean', value: 'false', diff --git a/tests/meson.build b/tests/meson.build index 28834c0..2e7ddf1 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -1,7 +1,9 @@ -mediaart_test = executable('mediaart-test', - 'mediaarttest.c', - dependencies: libmediaart_dep, -) +if get_option('tests') + mediaart_test = executable('mediaart-test', + 'mediaarttest.c', + dependencies: libmediaart_dep, + ) -test('mediaart', mediaart_test, - env: 'G_TEST_SRCDIR=' + meson.current_source_dir()) + test('mediaart', mediaart_test, + env: 'G_TEST_SRCDIR=' + meson.current_source_dir()) +endif |