From 51eea1f2657cea01761cb231c59f8b38bb5bfd2b Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath <nathbappai@gmail.com> Date: Sat, 6 Jul 2024 07:23:33 +0000 Subject: [PATCH] build: add option to disable tests Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> --- meson.build | 4 +++- meson_options.txt | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 3e43a01c9d..22b0b20ad5 100644 --- a/meson.build +++ b/meson.build @@ -194,7 +194,9 @@ subdir('remoting') subdir('pipewire') subdir('clients') subdir('wcap') -subdir('tests') +if get_option('tests') + subdir('tests') +endif subdir('data') subdir('man') subdir('pam') diff --git a/meson_options.txt b/meson_options.txt index ac355f15be..19674bbff0 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -202,6 +202,12 @@ option( description: 'Tools: screen recording decoder tool' ) +option( + 'tests', + type: 'boolean', + value: true, + description: 'Compile Weston tests' +) option( 'test-junit-xml', type: 'boolean', -- GitLab