1 import ./make-test-python.nix (
4 name = "kbd-setfont-decompress";
6 meta.maintainers = with lib.maintainers; [ oxalica ];
8 nodes.machine = { ... }: { };
11 machine.succeed("gzip -cd ${pkgs.terminus_font}/share/consolefonts/ter-v16b.psf.gz >font.psf")
12 machine.succeed("gzip <font.psf >font.psf.gz")
13 machine.succeed("bzip2 <font.psf >font.psf.bz2")
14 machine.succeed("xz <font.psf >font.psf.xz")
15 machine.succeed("zstd <font.psf >font.psf.zst")
16 # setfont returns 0 even on error.
17 assert machine.succeed("PATH= ${pkgs.kbd}/bin/setfont font.psf.gz 2>&1") == ""
18 assert machine.succeed("PATH= ${pkgs.kbd}/bin/setfont font.psf.bz2 2>&1") == ""
19 assert machine.succeed("PATH= ${pkgs.kbd}/bin/setfont font.psf.xz 2>&1") == ""
20 assert machine.succeed("PATH= ${pkgs.kbd}/bin/setfont font.psf.zst 2>&1") == ""