fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
17 lines
494 B
Nix
17 lines
494 B
Nix
{ runCommand, fontbakery }:
|
|
|
|
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.
|
|
${fontbakery}/bin/fontbakery check-ufo --no-progress --no-colors data/test/test.ufo >>$out
|
|
# TODO add more
|
|
''
|