mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +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/6058>
This commit is contained in:
parent
2111d6f015
commit
63322705c8
1 changed files with 15 additions and 9 deletions
|
@ -128,12 +128,6 @@ endif
|
|||
# FIXME: valgrind elements/rtp-payloading - needs fixing
|
||||
# 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
|
||||
if host_machine.system() != 'windows'
|
||||
good_tests += [
|
||||
|
@ -145,8 +139,6 @@ if host_machine.system() != 'windows'
|
|||
[ 'elements/jpegdec', not jpeglib.found() ],
|
||||
[ 'elements/jpegenc', not jpeglib.found() ],
|
||||
[ '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/apev2mux', not taglib_dep.found() ],
|
||||
[ 'elements/vp8enc', not vpx_dep.found() or not have_vp8_encoder ],
|
||||
|
@ -159,6 +151,20 @@ if host_machine.system() != 'windows'
|
|||
]
|
||||
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
|
||||
|
||||
fsmod = import('fs')
|
||||
test_defines = [
|
||||
'-UG_DISABLE_ASSERT',
|
||||
|
@ -204,7 +210,7 @@ test_deps = [gst_dep, gstbase_dep, gstnet_dep, gstcheck_dep, gstaudio_dep,
|
|||
# FIXME: add valgrind suppression common/gst.supp gst-plugins-good.supp
|
||||
foreach t : good_tests
|
||||
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_deps = t.get(2, [ ])
|
||||
skip_test = t.get(1, false)
|
||||
|
|
Loading…
Reference in a new issue