mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-24 03:48:13 +01:00
feat(profile): add fc-match & fc-pattern.
This commit is contained in:
parent
ffd6ecba5b
commit
8d4d17fa34
2 changed files with 13 additions and 1 deletions
|
@ -7,7 +7,7 @@ abi <abi/4.0>,
|
|||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{bin}/fc-list
|
||||
@{exec_path} = @{bin}/fc-list @{bin}/fc-match @{bin}/fc-pattern
|
||||
profile fc-list @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue