2018-09-10 08:08:15 +00:00
|
|
|
tests = [
|
|
|
|
['basic', 'basic.py'],
|
|
|
|
]
|
|
|
|
|
2020-06-25 12:11:33 +00:00
|
|
|
check_test = find_program ('configure_test_check.py')
|
2022-01-04 20:37:59 +00:00
|
|
|
have_webrtc_check_deps = run_command (check_test, check: false).returncode() == 0
|
2020-06-25 12:11:33 +00:00
|
|
|
|
|
|
|
if openssl.found() and have_webrtc_check_deps
|
2020-06-18 15:31:02 +00:00
|
|
|
test_deps = [certs]
|
2020-06-25 12:11:33 +00:00
|
|
|
message ('adding webrtc tests')
|
2018-09-10 08:08:15 +00:00
|
|
|
|
2020-06-18 15:31:02 +00:00
|
|
|
foreach elem : tests
|
|
|
|
test(elem.get(0),
|
|
|
|
py3,
|
|
|
|
depends: test_deps,
|
|
|
|
args : files(elem.get(1)),
|
|
|
|
# XXX: This PYTHONPATH hack is fun
|
2021-10-18 14:47:00 +00:00
|
|
|
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')])
|
2020-06-18 15:31:02 +00:00
|
|
|
endforeach
|
|
|
|
endif
|
2022-02-21 16:37:26 +00:00
|
|
|
|
|
|
|
env = environment()
|
|
|
|
env.prepend('GST_VALIDATE_SCENARIOS_PATH', meson.current_source_dir() / 'validate/scenarios')
|
2022-10-26 17:41:10 +00:00
|
|
|
env.prepend('GST_VALIDATE_APPS_DIR', meson.current_source_dir() / 'validate' /
|
|
|
|
'apps')
|
2022-02-21 16:37:26 +00:00
|
|
|
meson.add_devenv(env)
|