pipewire/spa/tests/meson.build
Wim Taymans 6f586602af audioconvert: add unit test for format conversion
Add unit test for fmt conversion and fix some bugs
Add empty fmt-ops benchmark
2019-01-23 15:59:54 +01:00

42 lines
938 B
Meson

test_apps = [
'test-buffer',
'test-pod',
'test-utils',
]
foreach a : test_apps
test(a,
executable(a, a + '.c',
dependencies : [dl_lib, pthread_lib, mathlib ],
include_directories : [spa_inc ],
c_args : [ '-D_GNU_SOURCE' ],
install : false),
env : [
'SPA_PLUGIN_DIR=@0@/spa/plugins/'.format(meson.build_root()),
])
endforeach
if have_cpp
test_cpp = executable('test-cpp', 'test-cpp.cpp',
include_directories : [spa_inc ],
dependencies : [],
install : false)
test('test-cpp', test_cpp)
endif
benchmark_apps = [
'stress-ringbuffer',
'benchmark-pod',
]
foreach a : benchmark_apps
benchmark(a,
executable(a, a + '.c',
dependencies : [dl_lib, pthread_lib, mathlib ],
include_directories : [spa_inc ],
c_args : [ '-D_GNU_SOURCE' ],
install : false),
env : [
'SPA_PLUGIN_DIR=@0@/spa/plugins/'.format(meson.build_root()),
])
endforeach