tests: add conf test for equal matches

This commit is contained in:
Duncan Overbruck
2023-06-17 20:07:11 +02:00
parent 19213efa9f
commit 575030aaf3
2 changed files with 23 additions and 0 deletions

View File

@@ -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;

View File

@@ -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
}
}
]