mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 04:05:40 +03:00
nixos/tests: simple zoom-us test to verify the module
This commit is contained in:
parent
1a5059ded6
commit
3d01f3bfe8
3 changed files with 21 additions and 0 deletions
|
@ -1503,6 +1503,7 @@ in
|
||||||
zipline = runTest ./zipline.nix;
|
zipline = runTest ./zipline.nix;
|
||||||
zoneminder = runTest ./zoneminder.nix;
|
zoneminder = runTest ./zoneminder.nix;
|
||||||
zookeeper = runTest ./zookeeper.nix;
|
zookeeper = runTest ./zookeeper.nix;
|
||||||
|
zoom-us = runTest ./zoom-us.nix;
|
||||||
zram-generator = runTest ./zram-generator.nix;
|
zram-generator = runTest ./zram-generator.nix;
|
||||||
zrepl = runTest ./zrepl.nix;
|
zrepl = runTest ./zrepl.nix;
|
||||||
zsh-history = runTest ./zsh-history.nix;
|
zsh-history = runTest ./zsh-history.nix;
|
||||||
|
|
18
nixos/tests/zoom-us.nix
Normal file
18
nixos/tests/zoom-us.nix
Normal 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")
|
||||||
|
'';
|
||||||
|
}
|
|
@ -6,6 +6,7 @@
|
||||||
xar,
|
xar,
|
||||||
cpio,
|
cpio,
|
||||||
callPackage,
|
callPackage,
|
||||||
|
nixosTests,
|
||||||
buildFHSEnv,
|
buildFHSEnv,
|
||||||
|
|
||||||
# Support pulseaudio by default
|
# Support pulseaudio by default
|
||||||
|
@ -141,6 +142,7 @@ let
|
||||||
|
|
||||||
passthru.updateScript = ./update.sh;
|
passthru.updateScript = ./update.sh;
|
||||||
passthru.tests.startwindow = callPackage ./test.nix { };
|
passthru.tests.startwindow = callPackage ./test.nix { };
|
||||||
|
passthru.tests.nixos-module = nixosTests.zoom-us;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://zoom.us/";
|
homepage = "https://zoom.us/";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue