summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2025-09-23 21:10:11 -0400
committerJohn Turner <jturner.usa@gmail.com>2025-09-23 21:10:11 -0400
commit2aa14b931f1a4fa7f465537b5310217b84615203 (patch)
tree5f364685a2c66a920f933096734fef98cfe24d34
parentb6c04426d9a7f28e9c440c25a3c2eee53d86cd00 (diff)
downloadpypaste-2aa14b931f1a4fa7f465537b5310217b84615203.tar.gz
gate tests behind option
-rw-r--r--meson.build6
-rw-r--r--meson_options.txt1
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')