From 2aa14b931f1a4fa7f465537b5310217b84615203 Mon Sep 17 00:00:00 2001 From: John Turner Date: Tue, 23 Sep 2025 21:10:11 -0400 Subject: gate tests behind option --- meson.build | 6 ++++-- meson_options.txt | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 2e656b4..13022e0 100644 --- a/meson.build +++ b/meson.build @@ -42,8 +42,10 @@ python = import('python').find_installation( python.install_sources(sources, preserve_path: true) -subdir('tests') - +if get_option('tests').enabled() + subdir('tests') +endif + # Local Variables: # eval: (remove-hook 'before-save-hook 'fmt-current-buffer t) # End: diff --git a/meson_options.txt b/meson_options.txt index 8fa6217..3d46c27 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1,2 +1,3 @@ option('client', type: 'feature', value: 'disabled') option('server', type: 'feature', value: 'disabled') +option('tests', type: 'feature', value: 'disabled') -- cgit v1.2.3