mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 05:05:29 +03:00
tests/teleports: init
This commit is contained in:
parent
eabb70aad5
commit
e5ad7914a8
3 changed files with 51 additions and 0 deletions
|
@ -975,6 +975,7 @@ in {
|
||||||
teeworlds = handleTest ./teeworlds.nix {};
|
teeworlds = handleTest ./teeworlds.nix {};
|
||||||
telegraf = handleTest ./telegraf.nix {};
|
telegraf = handleTest ./telegraf.nix {};
|
||||||
teleport = handleTest ./teleport.nix {};
|
teleport = handleTest ./teleport.nix {};
|
||||||
|
teleports = runTest ./teleports.nix;
|
||||||
thelounge = handleTest ./thelounge.nix {};
|
thelounge = handleTest ./thelounge.nix {};
|
||||||
terminal-emulators = handleTest ./terminal-emulators.nix {};
|
terminal-emulators = handleTest ./terminal-emulators.nix {};
|
||||||
thanos = handleTest ./thanos.nix {};
|
thanos = handleTest ./thanos.nix {};
|
||||||
|
|
48
nixos/tests/teleports.nix
Normal file
48
nixos/tests/teleports.nix
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
{ pkgs, lib, ... }:
|
||||||
|
{
|
||||||
|
name = "teleports-standalone";
|
||||||
|
meta.maintainers = lib.teams.lomiri.members;
|
||||||
|
|
||||||
|
nodes.machine =
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
imports = [ ./common/x11.nix ];
|
||||||
|
|
||||||
|
services.xserver.enable = true;
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
systemPackages = with pkgs.lomiri; [
|
||||||
|
suru-icon-theme
|
||||||
|
teleports
|
||||||
|
];
|
||||||
|
variables = {
|
||||||
|
UITK_ICON_THEME = "suru";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
i18n.supportedLocales = [ "all" ];
|
||||||
|
|
||||||
|
fonts.packages = with pkgs; [
|
||||||
|
# Intended font & helps with OCR
|
||||||
|
ubuntu_font_family
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
enableOCR = true;
|
||||||
|
|
||||||
|
testScript = ''
|
||||||
|
machine.wait_for_x()
|
||||||
|
|
||||||
|
with subtest("teleports launches"):
|
||||||
|
machine.execute("teleports >&2 &")
|
||||||
|
machine.wait_for_text(r"(TELEports|Phone Number)")
|
||||||
|
machine.screenshot("teleports_open")
|
||||||
|
|
||||||
|
machine.succeed("pkill -f teleports")
|
||||||
|
|
||||||
|
with subtest("teleports localisation works"):
|
||||||
|
machine.execute("env LANG=de_DE.UTF-8 teleports >&2 &")
|
||||||
|
machine.wait_for_text("Telefonnummer")
|
||||||
|
machine.screenshot("teleports_localised")
|
||||||
|
'';
|
||||||
|
}
|
|
@ -5,6 +5,7 @@
|
||||||
fetchFromGitLab,
|
fetchFromGitLab,
|
||||||
fetchpatch,
|
fetchpatch,
|
||||||
gitUpdater,
|
gitUpdater,
|
||||||
|
nixosTests,
|
||||||
cmake,
|
cmake,
|
||||||
content-hub,
|
content-hub,
|
||||||
intltool,
|
intltool,
|
||||||
|
@ -112,6 +113,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
updateScript = gitUpdater { rev-prefix = "v"; };
|
updateScript = gitUpdater { rev-prefix = "v"; };
|
||||||
|
tests.vm = nixosTests.teleports;
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue