Commit d3cbea09 authored by Thibault Saunier's avatar Thibault Saunier

meson: Do not use path separator in test names

Avoiding warnings like:

    WARNING: Target "elements/audioamplify" has a path separator in its name.
parent e937a885
...@@ -157,7 +157,8 @@ test_deps = [gst_dep, gstbase_dep, gstnet_dep, gstcheck_dep, gstaudio_dep, ...@@ -157,7 +157,8 @@ test_deps = [gst_dep, gstbase_dep, gstnet_dep, gstcheck_dep, gstaudio_dep,
# FIXME: add valgrind suppression common/gst.supp gst-plugins-good.supp # FIXME: add valgrind suppression common/gst.supp gst-plugins-good.supp
foreach t : good_tests foreach t : good_tests
test_name = t.get(0) fname = '@0@.c'.format(t.get(0))
test_name = t.get(0).underscorify()
extra_deps = [ ] extra_deps = [ ]
if t.length() == 3 if t.length() == 3
extra_deps = t.get(2) extra_deps = t.get(2)
...@@ -178,7 +179,7 @@ foreach t : good_tests ...@@ -178,7 +179,7 @@ foreach t : good_tests
env.set('GSETTINGS_BACKEND', 'memory') env.set('GSETTINGS_BACKEND', 'memory')
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))
exe = executable(test_name, '@0@.c'.format(test_name), exe = executable(test_name, fname,
include_directories : [configinc], include_directories : [configinc],
c_args : ['-DHAVE_CONFIG_H=1' ] + test_defines, c_args : ['-DHAVE_CONFIG_H=1' ] + test_defines,
dependencies : [libm] + test_deps + extra_deps, dependencies : [libm] + test_deps + extra_deps,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment