python: Add an option to disable tests

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1093>
This commit is contained in:
Thibault Saunier 2021-09-14 18:25:46 -03:00
parent e73fc26cf6
commit 4c8ebd5d73
2 changed files with 4 additions and 1 deletions

View file

@ -98,4 +98,6 @@ endif
subdir('gi')
subdir('plugin')
subdir('testsuite')
if not get_option('tests').disabled()
subdir('testsuite')
endif

View 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)