diff --git a/apparmor.d/groups/freedesktop/fc-list b/apparmor.d/groups/freedesktop/fc-list index ffe996c5..6254b245 100644 --- a/apparmor.d/groups/freedesktop/fc-list +++ b/apparmor.d/groups/freedesktop/fc-list @@ -7,7 +7,7 @@ abi , include -@{exec_path} = @{bin}/fc-list +@{exec_path} = @{bin}/fc-list @{bin}/fc-match @{bin}/fc-pattern profile fc-list @{exec_path} { include include diff --git a/tests/bats/fc-list.bats b/tests/bats/fc-list.bats index 52ed4388..12b1df2c 100644 --- a/tests/bats/fc-list.bats +++ b/tests/bats/fc-list.bats @@ -8,3 +8,15 @@ load common @test "fc-list: Return a list of installed fonts in your system" { fc-list } + +@test "fc-match: Return a sorted list of best matching fonts" { + fc-match -s 'DejaVu Serif' +} + +@test "fc-pattern: Display default information about a font" { + fc-pattern --default 'DejaVu Serif' +} + +@test "fc-pattern: Display configuration information about a font" { + fc-pattern --config 'DejaVu Serif' +}