pipewire/src/tests/meson.build

53 lines
1.5 KiB
Meson
Raw Normal View History

2019-01-08 17:38:34 +01:00
test_apps = [
'test-endpoint',
'test-interfaces',
# 'test-remote',
'test-stream',
2022-07-08 15:16:41 +02:00
'test-filter',
2019-01-08 17:38:34 +01:00
]
foreach a : test_apps
test('pw-' + a,
executable('pw-' + a, a + '.c',
dependencies : [pipewire_dep],
include_directories: [includes_inc],
install : installed_tests_enabled,
install_dir : installed_tests_execdir),
env : [
'SPA_PLUGIN_DIR=@0@'.format(spa_dep.get_variable('plugindir')),
'PIPEWIRE_CONFIG_DIR=@0@'.format(pipewire_dep.get_variable('confdatadir')),
'PIPEWIRE_MODULE_DIR=@0@'.format(pipewire_dep.get_variable('moduledir')),
])
if installed_tests_enabled
test_conf = configuration_data()
test_conf.set('exec', installed_tests_execdir / 'pw-' + a)
configure_file(
input: installed_tests_template,
output: 'pw-' + a + '.test',
install_dir: installed_tests_metadir,
configuration: test_conf
)
endif
2019-01-08 17:38:34 +01:00
endforeach
2019-01-08 13:40:41 +01:00
2019-01-08 13:00:24 +01:00
if have_cpp
test_cpp = executable('pw-test-cpp', 'test-cpp.cpp',
dependencies : [pipewire_dep],
install : installed_tests_enabled,
install_dir : installed_tests_execdir)
test('pw-test-cpp', test_cpp)
if installed_tests_enabled
test_conf = configuration_data()
test_conf.set('exec', installed_tests_execdir / 'pw-test-cpp')
configure_file(
input: installed_tests_template,
output: 'pw-test-cpp.test',
install_dir: installed_tests_metadir,
configuration: test_conf
)
endif
2019-01-08 13:00:24 +01:00
endif