mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
build-sys: meson: Move remaining tests under daemon and client builds
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/659>
This commit is contained in:
parent
6928714b64
commit
6dd14ad9f1
1 changed files with 62 additions and 64 deletions
|
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
default_tests = []
|
default_tests = []
|
||||||
|
|
||||||
|
if get_option('client')
|
||||||
default_tests += [
|
default_tests += [
|
||||||
[ 'channelmap-test', 'channelmap-test.c',
|
[ 'channelmap-test', 'channelmap-test.c',
|
||||||
[ check_dep, libpulse_dep ] ],
|
[ check_dep, libpulse_dep ] ],
|
||||||
|
|
@ -30,11 +31,25 @@ default_tests += [
|
||||||
[ check_dep, libm_dep, libpulse_dep, libpulsecommon_dep ] ],
|
[ check_dep, libm_dep, libpulse_dep, libpulsecommon_dep ] ],
|
||||||
]
|
]
|
||||||
|
|
||||||
if get_option('client')
|
|
||||||
default_tests += [
|
default_tests += [
|
||||||
[ 'mainloop-test', 'mainloop-test.c',
|
[ 'mainloop-test', 'mainloop-test.c',
|
||||||
[ check_dep, libpulse_dep, libpulsecommon_dep ] ],
|
[ check_dep, libpulse_dep, libpulsecommon_dep ] ],
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if cc.has_header('sys/eventfd.h')
|
||||||
|
default_tests += [
|
||||||
|
[ 'srbchannel-test', 'srbchannel-test.c',
|
||||||
|
[ check_dep, libpulse_dep, libpulsecommon_dep ] ]
|
||||||
|
]
|
||||||
|
endif
|
||||||
|
|
||||||
|
if glib_dep.found()
|
||||||
|
default_tests += [
|
||||||
|
[ 'mainloop-test-glib', 'mainloop-test.c',
|
||||||
|
[ check_dep, glib_dep, libpulse_dep, libpulsecommon_dep, libpulse_mainloop_glib_dep ],
|
||||||
|
[], ['-DGLIB_MAIN_LOOP'] ]
|
||||||
|
]
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if get_option('daemon')
|
if get_option('daemon')
|
||||||
|
|
@ -103,16 +118,6 @@ if get_option('daemon')
|
||||||
]
|
]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
endif
|
|
||||||
|
|
||||||
if cc.has_header('sys/eventfd.h')
|
|
||||||
default_tests += [
|
|
||||||
[ 'srbchannel-test', 'srbchannel-test.c',
|
|
||||||
[ check_dep, libpulse_dep, libpulsecommon_dep ] ]
|
|
||||||
]
|
|
||||||
endif
|
|
||||||
|
|
||||||
if get_option('daemon')
|
|
||||||
if alsa_dep.found()
|
if alsa_dep.found()
|
||||||
default_tests += [
|
default_tests += [
|
||||||
[ 'alsa-mixer-path-test', 'alsa-mixer-path-test.c',
|
[ 'alsa-mixer-path-test', 'alsa-mixer-path-test.c',
|
||||||
|
|
@ -122,17 +127,10 @@ if get_option('daemon')
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if glib_dep.found()
|
|
||||||
default_tests += [
|
|
||||||
[ 'mainloop-test-glib', 'mainloop-test.c',
|
|
||||||
[ check_dep, glib_dep, libpulse_dep, libpulsecommon_dep, libpulse_mainloop_glib_dep ],
|
|
||||||
[], ['-DGLIB_MAIN_LOOP'] ]
|
|
||||||
]
|
|
||||||
endif
|
|
||||||
|
|
||||||
# No-run tests
|
# No-run tests
|
||||||
norun_tests = []
|
norun_tests = []
|
||||||
|
|
||||||
|
if get_option('client')
|
||||||
norun_tests += [
|
norun_tests += [
|
||||||
[ 'pacat-simple', 'pacat-simple.c',
|
[ 'pacat-simple', 'pacat-simple.c',
|
||||||
[ libpulse_dep, libpulse_simple_dep ] ],
|
[ libpulse_dep, libpulse_simple_dep ] ],
|
||||||
|
|
@ -140,6 +138,14 @@ norun_tests += [
|
||||||
[ libpulse_dep, libpulse_simple_dep ] ],
|
[ libpulse_dep, libpulse_simple_dep ] ],
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if gtk_dep.found() and glib_dep.found()
|
||||||
|
norun_tests += [
|
||||||
|
[ 'gtk-test', 'gtk-test.c',
|
||||||
|
[ gtk_dep, libpulse_dep, libpulse_mainloop_glib_dep ] ]
|
||||||
|
]
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
if get_option('daemon')
|
if get_option('daemon')
|
||||||
norun_tests += [
|
norun_tests += [
|
||||||
[ 'flist-test', 'flist-test.c',
|
[ 'flist-test', 'flist-test.c',
|
||||||
|
|
@ -184,8 +190,6 @@ if get_option('daemon')
|
||||||
]
|
]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
endif
|
|
||||||
|
|
||||||
if cc.has_function('pthread_setaffinity_np', dependencies : thread_dep)
|
if cc.has_function('pthread_setaffinity_np', dependencies : thread_dep)
|
||||||
norun_tests += [
|
norun_tests += [
|
||||||
[ 'atomic-test', 'atomic-test.c',
|
[ 'atomic-test', 'atomic-test.c',
|
||||||
|
|
@ -198,12 +202,6 @@ if alsa_dep.found()
|
||||||
[ 'alsa-time-test', 'alsa-time-test.c', [ alsa_dep, thread_dep ] ]
|
[ 'alsa-time-test', 'alsa-time-test.c', [ alsa_dep, thread_dep ] ]
|
||||||
]
|
]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if gtk_dep.found() and glib_dep.found()
|
|
||||||
norun_tests += [
|
|
||||||
[ 'gtk-test', 'gtk-test.c',
|
|
||||||
[ gtk_dep, libpulse_dep, libpulse_mainloop_glib_dep ] ]
|
|
||||||
]
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Generate tests
|
# Generate tests
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue