mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
3d8372cc50
This should make "meson devenv" closer to what "gst-env.py" sets. - GST_VALIDATE_SCENARIOS_PATH - GST_VALIDATE_APPS_DIR - GST_OMX_CONFIG_DIR - GST_ENCODING_TARGET_PATH - GST_PRESET_PATH - GST_PLUGIN_SCANNER - GST_PTP_HELPER - _GI_OVERRIDES_PATH Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1768>
27 lines
1,005 B
Meson
27 lines
1,005 B
Meson
tests = [
|
|
['basic', 'basic.py'],
|
|
]
|
|
|
|
check_test = find_program ('configure_test_check.py')
|
|
have_webrtc_check_deps = run_command (check_test, check: false).returncode() == 0
|
|
|
|
if openssl.found() and have_webrtc_check_deps
|
|
test_deps = [certs]
|
|
message ('adding webrtc tests')
|
|
|
|
foreach elem : tests
|
|
test(elem.get(0),
|
|
py3,
|
|
depends: test_deps,
|
|
args : files(elem.get(1)),
|
|
# XXX: This PYTHONPATH hack is fun
|
|
env : ['PYTHONPATH=' + join_paths(meson.project_source_root(), 'sendrecv', 'gst') + ':' + join_paths(meson.project_source_root(), 'signalling'),
|
|
'TEST_HTML_SOURCE=' + join_paths(meson.project_source_root(), 'sendrecv', 'js'),
|
|
'TEST_CA_CERT_PATH=' + join_paths(meson.project_build_root(), 'signalling')])
|
|
endforeach
|
|
endif
|
|
|
|
env = environment()
|
|
env.prepend('GST_VALIDATE_SCENARIOS_PATH', meson.current_source_dir() / 'validate/scenarios')
|
|
env.prepend('GST_VALIDATE_APPS_DIR', meson.current_source_dir() / 'validate')
|
|
meson.add_devenv(env)
|