2020-04-24 23:36:52 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
name = "yabar";
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with pkgs.lib.maintainers; {
|
2021-09-18 10:52:07 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
nodes.machine = {
|
2020-04-24 23:36:52 +00:00
|
|
|
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")
|
|
|
|
'';
|
|
|
|
})
|