mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-05 07:48:01 +02:00
tests: add conf test for equal matches
This commit is contained in:
parent
19213efa9f
commit
575030aaf3
2 changed files with 23 additions and 0 deletions
|
|
@ -542,6 +542,18 @@ test_conf_apply_rules (TestConfFixture *f, gconstpointer data)
|
|||
match_props, NULL, NULL));
|
||||
}
|
||||
|
||||
/* Match equal */
|
||||
{
|
||||
g_autoptr (WpProperties) match_props = NULL;
|
||||
|
||||
match_props = wp_properties_new (
|
||||
"node.name", "alsa_output.0.my-alsa-device",
|
||||
NULL);
|
||||
|
||||
g_assert_true (wp_conf_apply_rules (f->conf, "wireplumber.section.rules",
|
||||
match_props, NULL, NULL));
|
||||
}
|
||||
|
||||
/* Without applied_props */
|
||||
{
|
||||
g_autoptr (WpProperties) match_props = NULL;
|
||||
|
|
|
|||
|
|
@ -71,4 +71,15 @@ wireplumber.section.rules = [
|
|||
api.acp.auto-port = false
|
||||
}
|
||||
}
|
||||
{
|
||||
matches = [
|
||||
{
|
||||
node.name = "alsa_output.0.my-alsa-device"
|
||||
}
|
||||
]
|
||||
update-props = {
|
||||
api.alsa.use-acp = true
|
||||
api.acp.auto-port = false
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue