2019-01-08 17:38:34 +01:00
|
|
|
test_apps = [
|
|
|
|
|
'test-array',
|
|
|
|
|
'test-client',
|
2019-12-10 18:19:56 +01:00
|
|
|
'test-context',
|
2020-03-26 19:30:56 +02:00
|
|
|
'test-endpoint',
|
2019-01-10 17:20:45 +01:00
|
|
|
'test-interfaces',
|
2019-01-11 10:24:25 +01:00
|
|
|
'test-properties',
|
2019-12-06 12:03:45 +01:00
|
|
|
# 'test-remote',
|
2019-01-10 17:58:37 +01:00
|
|
|
'test-stream',
|
|
|
|
|
'test-utils'
|
2019-01-08 17:38:34 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
foreach a : test_apps
|
2019-02-08 14:07:19 +02:00
|
|
|
test('pw-' + a,
|
|
|
|
|
executable('pw-' + a, a + '.c',
|
2019-01-09 10:54:56 +01:00
|
|
|
dependencies : [pipewire_dep],
|
2020-06-05 14:06:36 +01:00
|
|
|
install : installed_tests_enabled,
|
|
|
|
|
install_dir : installed_tests_execdir),
|
2019-01-09 10:54:56 +01:00
|
|
|
env : [
|
|
|
|
|
'SPA_PLUGIN_DIR=@0@/spa/plugins/'.format(meson.build_root()),
|
2021-02-11 21:14:43 +01:00
|
|
|
'PIPEWIRE_CONFIG_DIR=@0@/src/daemon/'.format(meson.build_root()),
|
2019-01-09 10:54:56 +01:00
|
|
|
'PIPEWIRE_MODULE_DIR=@0@/src/modules/'.format(meson.build_root())
|
|
|
|
|
])
|
2020-06-05 14:06:36 +01:00
|
|
|
|
|
|
|
|
if installed_tests_enabled
|
|
|
|
|
test_conf = configuration_data()
|
2021-04-15 14:41:04 +10:00
|
|
|
test_conf.set('exec', installed_tests_execdir / 'pw-' + a)
|
2020-06-05 14:06:36 +01:00
|
|
|
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
|
2019-02-08 14:07:19 +02:00
|
|
|
test_cpp = executable('pw-test-cpp', 'test-cpp.cpp',
|
2019-01-08 13:00:24 +01:00
|
|
|
dependencies : [pipewire_dep],
|
2020-06-05 14:06:36 +01:00
|
|
|
install : installed_tests_enabled,
|
|
|
|
|
install_dir : installed_tests_execdir)
|
2019-02-08 14:07:19 +02:00
|
|
|
test('pw-test-cpp', test_cpp)
|
2020-06-05 14:06:36 +01:00
|
|
|
|
|
|
|
|
if installed_tests_enabled
|
|
|
|
|
test_conf = configuration_data()
|
2021-04-15 14:41:04 +10:00
|
|
|
test_conf.set('exec', installed_tests_execdir / 'pw-test-cpp')
|
2020-06-05 14:06:36 +01:00
|
|
|
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
|