mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
nixosTests.fontconfig-default-fonts: port to python
This commit is contained in:
parent
917ab4b158
commit
5efe49ce67
@ -1,7 +1,12 @@
|
|||||||
import ./make-test.nix ({ lib, ... }:
|
import ./make-test-python.nix ({ lib, ... }:
|
||||||
{
|
{
|
||||||
name = "fontconfig-default-fonts";
|
name = "fontconfig-default-fonts";
|
||||||
|
|
||||||
|
meta.maintainers = with lib.maintainers; [
|
||||||
|
jtojnar
|
||||||
|
worldofpeace
|
||||||
|
];
|
||||||
|
|
||||||
machine = { config, pkgs, ... }: {
|
machine = { config, pkgs, ... }: {
|
||||||
fonts.enableDefaultFonts = true; # Background fonts
|
fonts.enableDefaultFonts = true; # Background fonts
|
||||||
fonts.fonts = with pkgs; [
|
fonts.fonts = with pkgs; [
|
||||||
@ -20,9 +25,9 @@ import ./make-test.nix ({ lib, ... }:
|
|||||||
};
|
};
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
$machine->succeed("fc-match serif | grep '\"Gentium Plus\"'");
|
machine.succeed("fc-match serif | grep '\"Gentium Plus\"'")
|
||||||
$machine->succeed("fc-match sans-serif | grep '\"Cantarell\"'");
|
machine.succeed("fc-match sans-serif | grep '\"Cantarell\"'")
|
||||||
$machine->succeed("fc-match monospace | grep '\"Source Code Pro\"'");
|
machine.succeed("fc-match monospace | grep '\"Source Code Pro\"'")
|
||||||
$machine->succeed("fc-match emoji | grep '\"Twitter Color Emoji\"'");
|
machine.succeed("fc-match emoji | grep '\"Twitter Color Emoji\"'")
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user