mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-09-06 16:56:00 +00:00
493f0724b5
Add them to the existing pw_properties test binary and rename that to pw-utils. Same functionality as before for the pw_array tests.
54 lines
1.1 KiB
Meson
54 lines
1.1 KiB
Meson
pwtest_sources = [
|
|
'pwtest.h',
|
|
'pwtest-implementation.h',
|
|
'pwtest.c',
|
|
]
|
|
|
|
pwtest_deps = [
|
|
pipewire_dep,
|
|
mathlib,
|
|
dl_lib,
|
|
]
|
|
|
|
pwtest_c_args = [
|
|
'-DHAVE_CONFIG_H',
|
|
'-DBUILD_ROOT="@0@"'.format(meson.build_root()),
|
|
'-DSOURCE_ROOT="@0@"'.format(meson.source_root()),
|
|
]
|
|
|
|
pwtest_inc = [
|
|
spa_inc,
|
|
pipewire_inc,
|
|
configinc,
|
|
includes_inc,
|
|
]
|
|
|
|
pwtest_lib = static_library(
|
|
'pwtest',
|
|
pwtest_sources,
|
|
c_args: pwtest_c_args,
|
|
dependencies: pwtest_deps,
|
|
include_directories: pwtest_inc,
|
|
)
|
|
|
|
# Compilation only, this is the example file for how pwtest works and most
|
|
# of its tests will fail.
|
|
executable('test-example',
|
|
'test-example.c',
|
|
include_directories: pwtest_inc,
|
|
link_with: pwtest_lib)
|
|
|
|
test('test pipewire utils',
|
|
executable('test-pw-utils',
|
|
'test-properties.c',
|
|
'test-array.c',
|
|
include_directories: pwtest_inc,
|
|
link_with: pwtest_lib)
|
|
)
|
|
test('test lib',
|
|
executable('test-lib',
|
|
'test-lib.c',
|
|
include_directories: pwtest_inc,
|
|
link_with: pwtest_lib)
|
|
)
|