2019-01-08 17:38:34 +01:00
|
|
|
test_apps = [
|
|
|
|
|
'test-array',
|
|
|
|
|
'test-client',
|
|
|
|
|
'test-core',
|
2019-01-10 17:20:45 +01:00
|
|
|
'test-interfaces',
|
2019-01-09 10:48:18 +01:00
|
|
|
'test-remote',
|
|
|
|
|
'test-stream'
|
2019-01-08 17:38:34 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
foreach a : test_apps
|
2019-01-09 10:54:56 +01:00
|
|
|
test(a,
|
|
|
|
|
executable(a, a + '.c',
|
|
|
|
|
dependencies : [pipewire_dep],
|
|
|
|
|
c_args : [ '-D_GNU_SOURCE' ],
|
|
|
|
|
install : false),
|
|
|
|
|
env : [
|
|
|
|
|
'SPA_PLUGIN_DIR=@0@/spa/plugins/'.format(meson.build_root()),
|
|
|
|
|
'PIPEWIRE_MODULE_DIR=@0@/src/modules/'.format(meson.build_root())
|
|
|
|
|
])
|
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('test-cpp', 'test-cpp.cpp',
|
|
|
|
|
dependencies : [pipewire_dep],
|
|
|
|
|
install : false)
|
|
|
|
|
test('test-cpp', test_cpp)
|
|
|
|
|
endif
|