jetbrains: 2024.1 -> 2024.2.7 (#351041)
[NixPkgs.git] / nixos / tests / lomiri-filemanager-app.nix
blobefde3a01c1145e3e0916913fb513eb603ab27ab4
1 { pkgs, lib, ... }:
3   name = "lomiri-filemanager-app-standalone";
4   meta.maintainers = lib.teams.lomiri.members;
6   nodes.machine =
7     { config, pkgs, ... }:
8     {
9       imports = [ ./common/x11.nix ];
11       services.xserver.enable = true;
13       environment = {
14         systemPackages = with pkgs.lomiri; [
15           suru-icon-theme
16           lomiri-filemanager-app
17         ];
18         variables = {
19           UITK_ICON_THEME = "suru";
20         };
21       };
23       i18n.supportedLocales = [ "all" ];
25       fonts.packages = with pkgs; [
26         # Intended font & helps with OCR
27         ubuntu-classic
28       ];
29     };
31   enableOCR = true;
33   testScript = ''
34     machine.wait_for_x()
36     with subtest("lomiri filemanager launches"):
37         machine.execute("lomiri-filemanager-app >&2 &")
38         machine.wait_for_text(r"(filemanager.ubports|alice|items|directories|files|folder)")
39         machine.screenshot("lomiri-filemanager_open")
41     machine.succeed("pkill -f lomiri-filemanager-app")
43     with subtest("lomiri filemanager localisation works"):
44         machine.execute("env LANG=de_DE.UTF-8 lomiri-filemanager-app >&2 &")
45         machine.wait_for_text(r"(Elemente|Verzeichnisse|Dateien|Ordner)")
46         machine.screenshot("lomiri-filemanager_localised")
47   '';