2018-08-10 12:26:03 +00:00
|
|
|
import ./make-test.nix ({ pkgs, lib, ... }:
|
2017-12-12 00:14:00 +00:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
name = "yabar";
|
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
|
|
maintainers = [ ma27 ];
|
|
|
|
};
|
|
|
|
|
2018-09-20 10:47:46 +00:00
|
|
|
machine = {
|
2017-12-12 00:14:00 +00:00
|
|
|
imports = [ ./common/x11.nix ./common/user-account.nix ];
|
|
|
|
|
|
|
|
services.xserver.displayManager.auto.user = "bob";
|
|
|
|
|
|
|
|
programs.yabar.enable = true;
|
2018-09-20 10:47:46 +00:00
|
|
|
programs.yabar.bars = {
|
|
|
|
top.indicators.date.exec = "YABAR_DATE";
|
|
|
|
};
|
2017-12-12 00:14:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
2018-09-20 10:47:46 +00:00
|
|
|
$machine->start;
|
|
|
|
$machine->waitForX;
|
2017-12-12 00:14:00 +00:00
|
|
|
|
2018-09-20 10:47:46 +00:00
|
|
|
# confirm proper startup
|
|
|
|
$machine->waitForUnit("yabar.service", "bob");
|
|
|
|
$machine->sleep(10);
|
|
|
|
$machine->waitForUnit("yabar.service", "bob");
|
|
|
|
|
|
|
|
$machine->screenshot("top_bar");
|
2017-12-12 00:14:00 +00:00
|
|
|
'';
|
|
|
|
})
|