tests: add conf test for equal matches
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
]
|
||||
|
Reference in New Issue
Block a user