Commit 3d01f3bf authored by Yarny0's avatar Yarny0
Browse files

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

parent 1a5059de
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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 −0
Original line number Diff line number Diff line
{ 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")
  '';
}
+2 −0
Original line number Diff line number Diff line
@@ -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/";