depot/third_party/nixpkgs/pkgs/development/python-modules/fontbakery/tests.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

19 lines
495 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
''