meson: Do not use path separator in test names

Avoiding warnings like:

    WARNING: Target "elements/audioamplify" has a path separator in its name.
This commit is contained in:
Thibault Saunier 2017-06-07 12:08:00 -04:00
parent b6746dfd4c
commit 797ee730b0

View file

@ -45,7 +45,8 @@ if gst_dep.type_name() == 'pkgconfig'
endif endif
foreach t : ges_tests foreach t : ges_tests
test_name = t.get(0) fname = '@0@.c'.format(t.get(0))
test_name = t.get(0).underscorify()
if t.length() == 2 if t.length() == 2
skip_test = t.get(1) skip_test = t.get(1)
else else
@ -60,7 +61,7 @@ foreach t : ges_tests
env.set('GST_REGISTRY', '@0@/@1@.registry'.format(meson.current_build_dir(), test_name)) env.set('GST_REGISTRY', '@0@/@1@.registry'.format(meson.current_build_dir(), test_name))
env.set('GST_PLUGIN_PATH_1_0', [meson.build_root()] + pluginsdirs) env.set('GST_PLUGIN_PATH_1_0', [meson.build_root()] + pluginsdirs)
exe = executable(test_name, '@0@.c'.format(test_name), exe = executable(test_name, fname,
'ges/test-utils.c', 'nle/common.c', 'ges/test-utils.c', 'nle/common.c',
c_args : ges_c_args + test_defines, c_args : ges_c_args + test_defines,
include_directories : [configinc], include_directories : [configinc],