mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 05:31:15 +00:00
good/tests: Don't enable soup tests if soup is disabled
Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3268 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6198>
This commit is contained in:
parent
4f777ab6ae
commit
2abbc2e0d9
1 changed files with 15 additions and 9 deletions
|
@ -127,12 +127,6 @@ endif
|
||||||
# FIXME: valgrind elements/rtp-payloading - needs fixing
|
# FIXME: valgrind elements/rtp-payloading - needs fixing
|
||||||
# elements/videocrop should be disabled since it takes way too long in valgrind
|
# elements/videocrop should be disabled since it takes way too long in valgrind
|
||||||
|
|
||||||
libsoup2_dep = dependency('libsoup-2.4', version : '>=2.48',
|
|
||||||
required : false, fallback : ['libsoup', 'libsoup_dep'],
|
|
||||||
default_options: ['sysprof=disabled'])
|
|
||||||
libsoup3_dep = dependency('libsoup-3.0', required : false,
|
|
||||||
fallback : ['libsoup3', 'libsoup_dep'])
|
|
||||||
|
|
||||||
# FIXME: unistd dependency or not tested yet on windows
|
# FIXME: unistd dependency or not tested yet on windows
|
||||||
if host_machine.system() != 'windows'
|
if host_machine.system() != 'windows'
|
||||||
good_tests += [
|
good_tests += [
|
||||||
|
@ -143,8 +137,6 @@ if host_machine.system() != 'windows'
|
||||||
[ 'elements/jpegdec', not jpeglib.found() ],
|
[ 'elements/jpegdec', not jpeglib.found() ],
|
||||||
[ 'elements/jpegenc', not jpeglib.found() ],
|
[ 'elements/jpegenc', not jpeglib.found() ],
|
||||||
[ 'elements/mpg123audiodec', not mpg123_dep.found(), [gstfft_dep]],
|
[ 'elements/mpg123audiodec', not mpg123_dep.found(), [gstfft_dep]],
|
||||||
[ 'elements/souphttpsrc', not libsoup2_dep.found(), [libsoup2_dep], [], 'elements/souphttpsrc2'],
|
|
||||||
[ 'elements/souphttpsrc', not libsoup3_dep.found(), [libsoup3_dep], [], 'elements/souphttpsrc3'],
|
|
||||||
[ 'elements/id3v2mux', not taglib_dep.found() ],
|
[ 'elements/id3v2mux', not taglib_dep.found() ],
|
||||||
[ 'elements/apev2mux', not taglib_dep.found() ],
|
[ 'elements/apev2mux', not taglib_dep.found() ],
|
||||||
[ 'elements/vp8enc', not vpx_dep.found() or not have_vp8_encoder ],
|
[ 'elements/vp8enc', not vpx_dep.found() or not have_vp8_encoder ],
|
||||||
|
@ -157,6 +149,20 @@ if host_machine.system() != 'windows'
|
||||||
]
|
]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if get_option('soup').allowed()
|
||||||
|
libsoup3_dep = dependency('libsoup-3.0', required : false,
|
||||||
|
fallback : ['libsoup3', 'libsoup_dep'])
|
||||||
|
libsoup2_dep = dependency('libsoup-2.4', version : '>=2.48',
|
||||||
|
required : false, fallback : ['libsoup', 'libsoup_dep'],
|
||||||
|
default_options: ['sysprof=disabled'])
|
||||||
|
|
||||||
|
if libsoup3_dep.found()
|
||||||
|
good_tests += [['elements/souphttpsrc', false, [libsoup3_dep], []]]
|
||||||
|
elif libsoup2_dep.found()
|
||||||
|
good_tests += [['elements/souphttpsrc', false, [libsoup2_dep], []]]
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
test_defines = [
|
test_defines = [
|
||||||
'-UG_DISABLE_ASSERT',
|
'-UG_DISABLE_ASSERT',
|
||||||
'-UG_DISABLE_CAST_CHECKS',
|
'-UG_DISABLE_CAST_CHECKS',
|
||||||
|
@ -201,7 +207,7 @@ 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
|
||||||
fname = '@0@.c'.format(t.get(0))
|
fname = '@0@.c'.format(t.get(0))
|
||||||
test_name = t.get(4, t.get(0)).underscorify()
|
test_name = t.get(0).underscorify()
|
||||||
extra_sources = t.get(3, [ ])
|
extra_sources = t.get(3, [ ])
|
||||||
extra_deps = t.get(2, [ ])
|
extra_deps = t.get(2, [ ])
|
||||||
skip_test = t.get(1, false)
|
skip_test = t.get(1, false)
|
||||||
|
|
Loading…
Reference in a new issue