tests: put registry into tests/check not the gst/ subdir

Underscorify the test name before setting GST_REGISTRY,
so the registry actually ends up in the current build dir
and not some subdir.

For consistency with the other modules, but should also
avoid problems on windows.

Also fix indentation of environment block.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-rtsp-server/-/merge_requests/126>
This commit is contained in:
Tim-Philipp Müller 2020-05-27 17:43:43 +01:00 committed by GStreamer Merge Bot
parent f9348a5e69
commit a33e756d2c

View file

@ -40,6 +40,9 @@ if not get_option('rtspclientsink').disabled()
endif endif
foreach test_name : rtsp_server_tests foreach test_name : rtsp_server_tests
fname = '@0@.c'.format(test_name)
test_name = test_name.underscorify()
env = environment() env = environment()
env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '') env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
env.set('GST_STATE_IGNORE_ELEMENTS', '') env.set('GST_STATE_IGNORE_ELEMENTS', '')
@ -49,8 +52,6 @@ foreach test_name : rtsp_server_tests
env.set('GST_PLUGIN_PATH_1_0', [meson.build_root()] + pluginsdirs) env.set('GST_PLUGIN_PATH_1_0', [meson.build_root()] + pluginsdirs)
env.set('GST_PLUGIN_SCANNER_1_0', gst_plugin_scanner_path) env.set('GST_PLUGIN_SCANNER_1_0', gst_plugin_scanner_path)
fname = '@0@.c'.format(test_name)
test_name = test_name.underscorify()
exe = executable(test_name, fname, exe = executable(test_name, fname,
include_directories : rtspserver_incs, include_directories : rtspserver_incs,
c_args : rtspserver_args + test_c_args, c_args : rtspserver_args + test_c_args,