The font tests
- Shell 100%
| .fmf | ||
| tests | ||
| README.rst | ||
Fonts Tests
===========
Common test repository for Fedora fonts packages.
Use `tmt` to run tests easily:
tmt run
How to create
-------------
1. `tmt init` at a package repository
2. `tmt plan create -t mini /plans/<sub package name>`
3. Replace `plans/<sub package name>.fmf` with the following template
Template
--------
::
summary: Fonts related tests
discover:
how: fmf
url: https://src.fedoraproject.org/tests/fonts
prepare:
name: tmt
how: install
package: <target font package name to test>
execute:
how: tmt
environment:
PACKAGE: <package name to test>
FONT_ALIAS: <generic alias to test such as sans-serif, serif, monospace>
FONT_FAMILY: <family name for this font>
FONT_LANG: <comma-separated list of language identifier>
FONT_WIDTH: <width name to test>
Available test cases
--------------------
- Generic alias
A test case to check if the expected generic alias is properly assigned.
The following parameters are used in this test:
- PACKAGE
- FONT_ALIAS (optional)
default value is sans-serif
- FONT_FAMILY
- FONT_LANG (optional)
default value is en.
- FONT_WIDTH (optional)
default value is normal.
- Language coverage
A test case to check if a font in PACKAGE has sufficient coverage for FONT_LANG.
The following parameters are used in this test:
- PACKAGE
- FONT_LANG (optional)