1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-09 09:36:20 +09:00

nixos/tests: simple zoom-us test to verify the module

This commit is contained in:
Yarny0 2025-05-01 19:28:32 +02:00
parent 1a5059ded6
commit 3d01f3bfe8
3 changed files with 21 additions and 0 deletions

View file

@ -1503,6 +1503,7 @@ in
zipline = runTest ./zipline.nix;
zoneminder = runTest ./zoneminder.nix;
zookeeper = runTest ./zookeeper.nix;
zoom-us = runTest ./zoom-us.nix;
zram-generator = runTest ./zram-generator.nix;
zrepl = runTest ./zrepl.nix;
zsh-history = runTest ./zsh-history.nix;

18
nixos/tests/zoom-us.nix Normal file
View file

@ -0,0 +1,18 @@
{ hostPkgs, lib, ... }:
{
name = "zoom-us";
nodes.machine =
{ pkgs, ... }:
{
imports = [ ./common/x11.nix ];
programs.zoom-us.enable = true;
};
testScript = ''
machine.succeed("which zoom") # fail early if this is missing
machine.wait_for_x()
machine.execute("zoom >&2 &")
machine.wait_for_window("Zoom Workplace")
'';
}

View file

@ -6,6 +6,7 @@
xar,
cpio,
callPackage,
nixosTests,
buildFHSEnv,
# Support pulseaudio by default
@ -141,6 +142,7 @@ let
passthru.updateScript = ./update.sh;
passthru.tests.startwindow = callPackage ./test.nix { };
passthru.tests.nixos-module = nixosTests.zoom-us;
meta = {
homepage = "https://zoom.us/";