2024-06-05 15:53:02 +00:00
|
|
|
{ runCommand, fontbakery }:
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
inherit (fontbakery) pname version src;
|
|
|
|
in
|
|
|
|
|
|
|
|
runCommand "${pname}-tests" { meta.timeout = 5; } ''
|
|
|
|
# Check the version matches what we packaged.
|
|
|
|
${fontbakery}/bin/fontbakery --version | grep -q "${version}"
|
|
|
|
|
|
|
|
# Unpack src to get some test fonts.
|
|
|
|
tar -xzf ${src} --strip-components=1 ${pname}-${version}/data/test
|
|
|
|
|
|
|
|
# Run some font checks.
|
2024-05-15 15:35:15 +00:00
|
|
|
${fontbakery}/bin/fontbakery check-ufo --no-progress --no-colors data/test/test.ufo >>$out
|
2024-01-02 11:29:13 +00:00
|
|
|
# TODO add more
|
|
|
|
''
|