diff options
Diffstat (limited to 'nixpkgs/nixos/tests/yabar.nix')
-rw-r--r-- | nixpkgs/nixos/tests/yabar.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/nixos/tests/yabar.nix b/nixpkgs/nixos/tests/yabar.nix new file mode 100644 index 000000000000..212a8ce4bbf5 --- /dev/null +++ b/nixpkgs/nixos/tests/yabar.nix @@ -0,0 +1,27 @@ +import ./make-test-python.nix ({ pkgs, lib, ... }: { + name = "yabar"; + meta.maintainers = [ ]; + + nodes.machine = { + imports = [ ./common/x11.nix ./common/user-account.nix ]; + + test-support.displayManager.auto.user = "bob"; + + programs.yabar.enable = true; + programs.yabar.bars = { + top.indicators.date.exec = "YABAR_DATE"; + }; + }; + + testScript = '' + machine.start() + machine.wait_for_x() + + # confirm proper startup + machine.wait_for_unit("yabar.service", "bob") + machine.sleep(10) + machine.wait_for_unit("yabar.service", "bob") + + machine.screenshot("top_bar") + ''; +}) |