1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/nixos/tests/yabar.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
682 B
Nix
Raw Normal View History

import ./make-test-python.nix (
{ pkgs, lib, ... }:
{
name = "yabar";
meta.maintainers = [ ];
2022-03-20 23:15:30 +00:00
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 = ''
2019-11-06 06:54:16 +00:00
machine.start()
machine.wait_for_x()
# confirm proper startup
2019-11-06 06:54:16 +00:00
machine.wait_for_unit("yabar.service", "bob")
machine.sleep(10)
machine.wait_for_unit("yabar.service", "bob")
2019-11-06 06:54:16 +00:00
machine.screenshot("top_bar")
'';
}
)