nixpkgs/nixos/tests/yabar.nix
Dominik Xaver Hörl 25bef2d8f9 treewide: simplify pkgs.stdenv.lib -> pkgs.lib
The library does not depend on stdenv, that `stdenv` exposes `lib` is
an artifact of the ancient origins of nixpkgs.
2021-01-10 20:12:06 +01:00

33 lines
665 B
Nix

import ./make-test-python.nix ({ pkgs, lib, ... }:
with lib;
{
name = "yabar";
meta = with pkgs.lib.maintainers; {
maintainers = [ ma27 ];
};
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")
'';
})