mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-02-15 14:45:05 +01:00
feat(profile): add fc-match & fc-pattern.
This commit is contained in:
parent
70497e77a3
commit
4fe13bcb1c
2 changed files with 13 additions and 1 deletions
|
@ -7,7 +7,7 @@ abi <abi/4.0>,
|
||||||
|
|
||||||
include <tunables/global>
|
include <tunables/global>
|
||||||
|
|
||||||
@{exec_path} = @{bin}/fc-list
|
@{exec_path} = @{bin}/fc-list @{bin}/fc-match @{bin}/fc-pattern
|
||||||
profile fc-list @{exec_path} {
|
profile fc-list @{exec_path} {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/consoles>
|
include <abstractions/consoles>
|
||||||
|
|
|
@ -8,3 +8,15 @@ load common
|
||||||
@test "fc-list: Return a list of installed fonts in your system" {
|
@test "fc-list: Return a list of installed fonts in your system" {
|
||||||
fc-list
|
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