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,32 +9,47 @@
|
||||||
|
|
||||||
default_tests = []
|
default_tests = []
|
||||||
|
|
||||||
default_tests += [
|
|
||||||
[ 'channelmap-test', 'channelmap-test.c',
|
|
||||||
[ check_dep, libpulse_dep ] ],
|
|
||||||
[ 'core-util-test', 'core-util-test.c',
|
|
||||||
[ check_dep, libpulse_dep, libpulsecommon_dep ] ],
|
|
||||||
[ 'get-binary-name-test', 'get-binary-name-test.c',
|
|
||||||
[ check_dep, libpulse_dep, libpulsecommon_dep ] ],
|
|
||||||
[ 'hashmap-test', 'hashmap-test.c',
|
|
||||||
[ check_dep, libpulse_dep, libpulsecommon_dep ] ],
|
|
||||||
[ 'json-test', 'json-test.c',
|
|
||||||
[ check_dep, libpulse_dep, libpulsecommon_dep ] ],
|
|
||||||
[ 'proplist-test', 'proplist-test.c',
|
|
||||||
[ check_dep, libpulse_dep, libpulsecommon_dep ] ],
|
|
||||||
[ 'thread-mainloop-test', 'thread-mainloop-test.c',
|
|
||||||
[ check_dep, libpulse_dep, libpulsecommon_dep ] ],
|
|
||||||
[ 'utf8-test', 'utf8-test.c',
|
|
||||||
[ check_dep, libpulse_dep, libpulsecommon_dep ] ],
|
|
||||||
[ 'volume-test', 'volume-test.c',
|
|
||||||
[ check_dep, libm_dep, libpulse_dep, libpulsecommon_dep ] ],
|
|
||||||
]
|
|
||||||
|
|
||||||
if get_option('client')
|
if get_option('client')
|
||||||
|
default_tests += [
|
||||||
|
[ 'channelmap-test', 'channelmap-test.c',
|
||||||
|
[ check_dep, libpulse_dep ] ],
|
||||||
|
[ 'core-util-test', 'core-util-test.c',
|
||||||
|
[ check_dep, libpulse_dep, libpulsecommon_dep ] ],
|
||||||
|
[ 'get-binary-name-test', 'get-binary-name-test.c',
|
||||||
|
[ check_dep, libpulse_dep, libpulsecommon_dep ] ],
|
||||||
|
[ 'hashmap-test', 'hashmap-test.c',
|
||||||
|
[ check_dep, libpulse_dep, libpulsecommon_dep ] ],
|
||||||
|
[ 'json-test', 'json-test.c',
|
||||||
|
[ check_dep, libpulse_dep, libpulsecommon_dep ] ],
|
||||||
|
[ 'proplist-test', 'proplist-test.c',
|
||||||
|
[ check_dep, libpulse_dep, libpulsecommon_dep ] ],
|
||||||
|
[ 'thread-mainloop-test', 'thread-mainloop-test.c',
|
||||||
|
[ check_dep, libpulse_dep, libpulsecommon_dep ] ],
|
||||||
|
[ 'utf8-test', 'utf8-test.c',
|
||||||
|
[ check_dep, libpulse_dep, libpulsecommon_dep ] ],
|
||||||
|
[ 'volume-test', 'volume-test.c',
|
||||||
|
[ check_dep, libm_dep, libpulse_dep, libpulsecommon_dep ] ],
|
||||||
|
]
|
||||||
|
|
||||||
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,23 +127,24 @@ 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 = []
|
||||||
|
|
||||||
norun_tests += [
|
if get_option('client')
|
||||||
[ 'pacat-simple', 'pacat-simple.c',
|
norun_tests += [
|
||||||
[ libpulse_dep, libpulse_simple_dep ] ],
|
[ 'pacat-simple', 'pacat-simple.c',
|
||||||
[ 'parec-simple', 'parec-simple.c',
|
[ libpulse_dep, libpulse_simple_dep ] ],
|
||||||
[ libpulse_dep, libpulse_simple_dep ] ],
|
[ 'parec-simple', 'parec-simple.c',
|
||||||
]
|
[ 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 += [
|
||||||
|
|
@ -184,26 +190,18 @@ if get_option('daemon')
|
||||||
]
|
]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
endif
|
if cc.has_function('pthread_setaffinity_np', dependencies : thread_dep)
|
||||||
|
norun_tests += [
|
||||||
|
[ 'atomic-test', 'atomic-test.c',
|
||||||
|
[ check_dep, libpulsecommon_dep, thread_dep ] ]
|
||||||
|
]
|
||||||
|
endif
|
||||||
|
|
||||||
if cc.has_function('pthread_setaffinity_np', dependencies : thread_dep)
|
if alsa_dep.found()
|
||||||
norun_tests += [
|
norun_tests += [
|
||||||
[ 'atomic-test', 'atomic-test.c',
|
[ 'alsa-time-test', 'alsa-time-test.c', [ alsa_dep, thread_dep ] ]
|
||||||
[ check_dep, libpulsecommon_dep, thread_dep ] ]
|
]
|
||||||
]
|
endif
|
||||||
endif
|
|
||||||
|
|
||||||
if alsa_dep.found()
|
|
||||||
norun_tests += [
|
|
||||||
[ 'alsa-time-test', 'alsa-time-test.c', [ alsa_dep, thread_dep ] ]
|
|
||||||
]
|
|
||||||
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