nixos/tests/phosh: check phosh-mobile-settings starts

+15 -2
+10 -1
nixos/tests/phosh.nix
··· 25 25 }; 26 26 }; 27 27 28 + environment.systemPackages = [ 29 + pkgs.phosh-mobile-settings 30 + ]; 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 - phone.send_chars("setting", delay=0.2) 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 + 74 + with subtest("Check mobile-phosh-settings starts"): 75 + phone.send_chars("\n") 76 + phone.wait_for_text("Tweak advanced mobile settings"); 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 + , 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 - passthru.updateScript = directoryListingUpdater { }; 63 + passthru = { 64 + tests.phosh = nixosTests.phosh; 65 + updateScript = directoryListingUpdater { }; 66 + }; 63 67 64 68 meta = with lib; { 65 69 description = "A settings app for mobile specific things";