Skip to content
Snippets Groups Projects
Commit fe12e8ab authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

tests: enable WIREPLUMBER_DEBUG and set WIREPLUMBER_MODULE_DIR by default

+ better logs by default
+ allow loading modules in tests
parent 1d157f01
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,11 @@ common_deps = [gobject_dep, gio_dep, wp_dep, pipewire_dep] ...@@ -2,6 +2,11 @@ common_deps = [gobject_dep, gio_dep, wp_dep, pipewire_dep]
common_env = [ common_env = [
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()), 'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()), 'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
'WIREPLUMBER_MODULE_DIR=@0@'.format(meson.current_build_dir() / '..' / '..' / 'modules'),
'WIREPLUMBER_DEBUG=7',
]
common_args = [
'-DG_LOG_USE_STRUCTURED',
] ]
test( test(
...@@ -11,7 +16,7 @@ test( ...@@ -11,7 +16,7 @@ test(
'algorithms.c', 'algorithms.c',
'../../modules/module-pipewire/algorithms.c' '../../modules/module-pipewire/algorithms.c'
], ],
dependencies: common_deps), dependencies: common_deps, c_args: common_args),
env: common_env, env: common_env,
) )
...@@ -23,7 +28,7 @@ test( ...@@ -23,7 +28,7 @@ test(
'../../modules/module-config-static-nodes/parser-node.c', '../../modules/module-config-static-nodes/parser-node.c',
'../../modules/module-config-static-nodes/context.c', '../../modules/module-config-static-nodes/context.c',
], ],
dependencies: common_deps + [wptoml_dep]), dependencies: common_deps + [wptoml_dep], c_args: common_args),
env: common_env, env: common_env,
workdir : meson.current_source_dir(), workdir : meson.current_source_dir(),
) )
...@@ -38,7 +43,7 @@ test( ...@@ -38,7 +43,7 @@ test(
'../../modules/module-config-endpoint/parser-streams.c', '../../modules/module-config-endpoint/parser-streams.c',
'../../modules/module-config-endpoint/context.c', '../../modules/module-config-endpoint/context.c',
], ],
dependencies: common_deps + [wptoml_dep]), dependencies: common_deps + [wptoml_dep], c_args: common_args),
env: common_env, env: common_env,
workdir : meson.current_source_dir(), workdir : meson.current_source_dir(),
) )
...@@ -54,7 +59,7 @@ test( ...@@ -54,7 +59,7 @@ test(
'../../modules/module-config-policy/config-policy.c', '../../modules/module-config-policy/config-policy.c',
'../../modules/module-config-policy/parser-endpoint-link.c' '../../modules/module-config-policy/parser-endpoint-link.c'
], ],
dependencies: common_deps + [wptoml_dep]), dependencies: common_deps + [wptoml_dep], c_args: common_args),
env: common_env, env: common_env,
workdir : meson.current_source_dir(), workdir : meson.current_source_dir(),
) )
...@@ -67,7 +72,7 @@ test( ...@@ -67,7 +72,7 @@ test(
'../../modules/module-monitor/dbus-device-reservation.c', '../../modules/module-monitor/dbus-device-reservation.c',
reserve_device_interface_src, reserve_device_interface_src,
], ],
dependencies: common_deps + [giounix_dep]), dependencies: common_deps + [giounix_dep], c_args: common_args),
env: common_env, env: common_env,
workdir : meson.current_source_dir(), workdir : meson.current_source_dir(),
) )
......
...@@ -2,6 +2,8 @@ common_deps = [gobject_dep, gio_dep, wp_dep, pipewire_dep] ...@@ -2,6 +2,8 @@ common_deps = [gobject_dep, gio_dep, wp_dep, pipewire_dep]
common_env = [ common_env = [
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()), 'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()), 'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
'WIREPLUMBER_MODULE_DIR=@0@'.format(meson.current_build_dir() / '..' / '..' / 'modules'),
'WIREPLUMBER_DEBUG=7',
] ]
common_args = [ common_args = [
'-DG_LOG_USE_STRUCTURED', '-DG_LOG_USE_STRUCTURED',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment