Pauli Virtanen
36f809fb50
lib: settings: make settings name optional
...
The "name" field needs to be optional, to be backward compatible with
old settings spec format. If it's omitted, make it NULL.
2025-07-24 12:14:33 +03:00
Pauli Virtanen
3b1acc5474
lib: settings: add wp_settings_spec_get_name() for human-readable name
...
Extend settings spec with a human-readable name, and add function to get
it.
2025-07-24 11:44:04 +03:00
David Mandelberg
08d7e51efb
test-utils: make it possible to specify a device's props
...
The test I wrote for
https://gitlab.freedesktop.org/pipewire/wireplumber/-/issues/778 uses
this, since it needs a target-loudness to make a loudness filter:
```
tu.createDeviceNode (
"default-device-node",
"Audio/Sink",
{ ["device.target-loudness"] = -18 }
)
```
2025-04-11 13:55:24 +00:00
George Kiagiadakis
14cbddd007
tests/scripts: fix tests to respect "object.serial" vs "node.id" differences
...
Fixes : #761
2025-02-07 08:54:05 +02:00
luzpaz
cb770c1d7e
docs: fix various codebase typos Found via codespell -q 3 -S "*.po,./po/*,NEWS.rst" -L bootup,gir,inout
2025-01-28 15:45:54 +01:00
Ashok Sidipotu
88d1dd86e5
wireplumber.conf: increase the cam discovery timer value
2024-05-08 14:20:16 +00:00
George Kiagiadakis
3fa5228d22
meson: move the common CFLAGS to project-wide scope
2024-03-09 15:58:01 +02:00
Julian Bouzas
ee366446b6
conf: fix settings schema typos
...
Fixes #583
2024-03-04 09:03:51 -05:00
George Kiagiadakis
3dc837c370
WpLookupDirs: remove the flag for looking into G_TEST_SRCDIR
...
Instead, make it so that WIREPLUMBER_*_DIR environment variables can
contain a list of directories to look into. This is safer and,
as a bonus, allows for more control over the lookup directories.
Using the G_TEST_SRCDIR variable can cause problems for tests of other
projects that use libwireplumber and may also lead to unexpected
behavior by not being obvious that this causes wireplumber to skip
looking in its standard directories...
This also brings back WIREPLUMBER_CONFIG_DIR, which is going to be
needed again for the upcoming WpConf changes.
2024-03-04 07:07:56 +00:00
Julian Bouzas
8935837cda
scripts: remove settings-manager and use the Settings API
...
The settings manager is not needed anymore because the WpSettings Lua API
returns now the default value from the schema if the setting is not found.
2024-02-28 10:20:31 -05:00
George Kiagiadakis
1e40108d94
linking-utils: rename unwrap_find_target_event -> unwrap_select_target_event
2023-09-30 12:06:40 +03:00
Ashok Sidipotu
d4f3e2bdca
tests: replace "policy" with "linking"
2023-09-26 10:09:47 +03:00
Ashok Sidipotu
e7c992e97d
default-nodes-tests: use the changed variable in test utils
2023-04-17 07:48:18 -04:00
Ashok Sidipotu
80554fe1c7
common-utils.lua: remove metadata object managers
2023-04-17 07:48:18 -04:00
George Kiagiadakis
7c2e713c9d
m-metadata: remove module-metadata and replace it with a simple lua script
2023-04-17 07:48:18 -04:00
Ashok Sidipotu
9a0f8647ac
test-utils: align style
2023-04-17 07:48:18 -04:00
Ashok Sidipotu
c7c06351f7
test-utils: add a restartPlugin API
2023-04-17 07:48:18 -04:00
Ashok Sidipotu
c88a569835
default node tests: add initial test
...
tests the initial metadata setup.
2023-04-17 07:48:18 -04:00
Ashok Sidipotu
6495eb6d21
linking tests: create stream node after device nodes are ready
2023-04-17 07:48:18 -04:00
Ashok Sidipotu
8a6e28f496
test-utils.lua: create stream node with script tester plugin
2023-04-17 07:48:18 -04:00
Ashok Sidipotu
de394f7d02
linking tests: add defined tests
2023-04-17 07:48:18 -04:00
Ashok Sidipotu
0099ef2932
test-utils.lua: add support for defined test cases
2023-04-17 07:48:18 -04:00
Ashok Sidipotu
669b91678d
linking tests: add default device test cases
2023-04-17 07:48:18 -04:00
Ashok Sidipotu
db4ace420c
test-lib.lua: add support of default device selection
2023-04-17 07:48:18 -04:00
Ashok Sidipotu
de24f7a432
linking tests: add non default device tests
2023-04-17 07:48:18 -04:00
Ashok Sidipotu
0d0230177a
test-utils.lua: support non-default device tests
2023-04-17 07:48:18 -04:00
Ashok Sidipotu
a1e79cc84b
script tests: add test utils
2023-04-17 07:48:18 -04:00
Ashok Sidipotu
8e78ec58e3
lua tests: script tests: add a new folder
...
Move the script-tester.c one folder up so that it is common for wplua and these tests.
2023-04-17 07:48:18 -04:00