python: Add an option to disable tests
authorThibault Saunier <tsaunier@igalia.com>
Tue, 14 Sep 2021 21:25:46 +0000 (18:25 -0300)
committerThibault Saunier <tsaunier@igalia.com>
Fri, 15 Oct 2021 23:27:35 +0000 (20:27 -0300)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1093>

subprojects/gst-python/meson.build
subprojects/gst-python/meson_options.txt

index 5ec92f6..f6e2491 100644 (file)
@@ -98,4 +98,6 @@ endif
 
 subdir('gi')
 subdir('plugin')
-subdir('testsuite')
+if not get_option('tests').disabled()
+  subdir('testsuite')
+endif
index 7074b98..110f0b9 100644 (file)
@@ -3,3 +3,4 @@ option('pygi-overrides-dir', type : 'string', value : '',
 option('libpython-dir', type : 'string', value : '',
         description: 'Path to find libpythonXX.so')
 option('python', type : 'string', value : 'python3')
+option('tests', type : 'feature', value : 'auto', yield : true)