tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
nixos/tests/phosh: check phosh-mobile-settings starts
Tom Fitzhenry
2 years ago
00ad4eba
41992852
+15
-2
2 changed files
expand all
collapse all
unified
split
nixos
tests
phosh.nix
pkgs
applications
window-managers
phosh
phosh-mobile-settings.nix
+10
-1
nixos/tests/phosh.nix
···
25
25
};
26
26
};
27
27
28
28
+
environment.systemPackages = [
29
29
+
pkgs.phosh-mobile-settings
30
30
+
];
31
31
+
28
32
systemd.services.phosh = {
29
33
environment = {
30
34
# Accelerated graphics fail on phoc 0.20 (wlroots 0.15)
···
63
67
phone.screenshot("03launcher")
64
68
65
69
with subtest("Check the on-screen keyboard shows"):
66
66
-
phone.send_chars("setting", delay=0.2)
70
70
+
phone.send_chars("mobile setting", delay=0.2)
67
71
phone.wait_for_text("123") # A button on the OSK
68
72
phone.screenshot("04osk")
73
73
+
74
74
+
with subtest("Check mobile-phosh-settings starts"):
75
75
+
phone.send_chars("\n")
76
76
+
phone.wait_for_text("Tweak advanced mobile settings");
77
77
+
phone.screenshot("05settings")
69
78
'';
70
79
})
+5
-1
pkgs/applications/window-managers/phosh/phosh-mobile-settings.nix
···
1
1
{ lib
2
2
, stdenv
3
3
, fetchurl
4
4
+
, nixosTests
4
5
, directoryListingUpdater
5
6
, meson
6
7
, ninja
···
59
60
ln -s '${phosh}/lib/phosh' "$out/lib/phosh"
60
61
'';
61
62
62
62
-
passthru.updateScript = directoryListingUpdater { };
63
63
+
passthru = {
64
64
+
tests.phosh = nixosTests.phosh;
65
65
+
updateScript = directoryListingUpdater { };
66
66
+
};
63
67
64
68
meta = with lib; {
65
69
description = "A settings app for mobile specific things";