mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-16 08:56:40 -05:00
meson: Duplicate split of long daemon tests from autotools build
This avoids the running the longer daemon tests by default to make CI faster.
This commit is contained in:
parent
6a60f91054
commit
aeb0ef1fea
1 changed files with 18 additions and 7 deletions
|
|
@ -201,24 +201,32 @@ endforeach
|
||||||
# These tests need a running pulseaudio daemon
|
# These tests need a running pulseaudio daemon
|
||||||
|
|
||||||
daemon_tests = [
|
daemon_tests = [
|
||||||
[ 'connect-stress', 'connect-stress.c',
|
|
||||||
[ check_dep, libpulse_dep ] ],
|
|
||||||
[ 'extended-test', 'extended-test.c',
|
[ 'extended-test', 'extended-test.c',
|
||||||
[ check_dep, libm_dep, libpulse_dep ] ],
|
[ check_dep, libm_dep, libpulse_dep ] ],
|
||||||
[ 'interpol-test', 'interpol-test.c',
|
|
||||||
[ check_dep, libpulse_dep, libpulsecommon_dep, libpulsecore_dep ] ],
|
|
||||||
[ 'sync-playback', 'sync-playback.c',
|
[ 'sync-playback', 'sync-playback.c',
|
||||||
[ check_dep, libm_dep, libpulse_dep ] ],
|
[ check_dep, libm_dep, libpulse_dep ] ],
|
||||||
]
|
]
|
||||||
|
|
||||||
daemon_test_names = []
|
daemon_tests_long = [
|
||||||
|
[ 'connect-stress', 'connect-stress.c',
|
||||||
|
[ check_dep, libpulse_dep ] ],
|
||||||
|
[ 'interpol-test', 'interpol-test.c',
|
||||||
|
[ check_dep, libpulse_dep, libpulsecommon_dep, libpulsecore_dep ] ],
|
||||||
|
]
|
||||||
|
|
||||||
foreach t : daemon_tests
|
daemon_test_names = []
|
||||||
|
daemon_test_long_names = []
|
||||||
|
|
||||||
|
foreach t : daemon_tests + daemon_tests_long
|
||||||
name = t[0]
|
name = t[0]
|
||||||
sources = t[1]
|
sources = t[1]
|
||||||
deps = t[2]
|
deps = t[2]
|
||||||
|
|
||||||
daemon_test_names += name
|
if daemon_tests.contains(t)
|
||||||
|
daemon_test_names += name
|
||||||
|
else
|
||||||
|
daemon_test_long_names += name
|
||||||
|
endif
|
||||||
|
|
||||||
executable(name, sources,
|
executable(name, sources,
|
||||||
c_args : pa_c_args,
|
c_args : pa_c_args,
|
||||||
|
|
@ -231,3 +239,6 @@ test_daemon_meson_sh = find_program('test-daemon.meson.sh')
|
||||||
run_target('test-daemon',
|
run_target('test-daemon',
|
||||||
command : [ test_daemon_meson_sh ] + daemon_test_names
|
command : [ test_daemon_meson_sh ] + daemon_test_names
|
||||||
)
|
)
|
||||||
|
run_target('test-daemon-long',
|
||||||
|
command : [ test_daemon_meson_sh ] + daemon_test_long_names
|
||||||
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue