2023-04-30 11:26:21 -03:00
|
|
|
import ./make-test-python.nix (
|
|
|
|
{ pkgs, lib, ... }:
|
|
|
|
{
|
2017-12-12 01:14:00 +01:00
|
|
|
name = "yabar";
|
2023-04-30 11:26:21 -03:00
|
|
|
meta.maintainers = [ ];
|
2017-12-12 01:14:00 +01:00
|
|
|
|
2022-03-21 00:15:30 +01:00
|
|
|
nodes.machine = {
|
2017-12-12 01:14:00 +01:00
|
|
|
imports = [
|
|
|
|
./common/x11.nix
|
|
|
|
./common/user-account.nix
|
|
|
|
];
|
|
|
|
|
2020-01-26 17:41:19 -05:00
|
|
|
test-support.displayManager.auto.user = "bob";
|
2017-12-12 01:14:00 +01:00
|
|
|
|
|
|
|
programs.yabar.enable = true;
|
2018-09-20 12:47:46 +02:00
|
|
|
programs.yabar.bars = {
|
|
|
|
top.indicators.date.exec = "YABAR_DATE";
|
2024-12-10 20:26:33 +01:00
|
|
|
};
|
2018-09-20 12:47:46 +02:00
|
|
|
};
|
2017-12-12 01:14:00 +01:00
|
|
|
|
|
|
|
testScript = ''
|
2019-11-06 07:54:16 +01:00
|
|
|
machine.start()
|
|
|
|
machine.wait_for_x()
|
2017-12-12 01:14:00 +01:00
|
|
|
|
2018-09-20 12:47:46 +02:00
|
|
|
# confirm proper startup
|
2019-11-06 07:54:16 +01:00
|
|
|
machine.wait_for_unit("yabar.service", "bob")
|
|
|
|
machine.sleep(10)
|
|
|
|
machine.wait_for_unit("yabar.service", "bob")
|
2018-09-20 12:47:46 +02:00
|
|
|
|
2019-11-06 07:54:16 +01:00
|
|
|
machine.screenshot("top_bar")
|
2017-12-12 01:14:00 +01:00
|
|
|
'';
|
|
|
|
}
|
|
|
|
)
|