at 23.05-pre 666 B view raw
1import ./make-test-python.nix ({ pkgs, lib, ... }: 2 3with lib; 4 5{ 6 name = "yabar"; 7 meta = with pkgs.lib.maintainers; { 8 maintainers = [ ]; 9 }; 10 11 nodes.machine = { 12 imports = [ ./common/x11.nix ./common/user-account.nix ]; 13 14 test-support.displayManager.auto.user = "bob"; 15 16 programs.yabar.enable = true; 17 programs.yabar.bars = { 18 top.indicators.date.exec = "YABAR_DATE"; 19 }; 20 }; 21 22 testScript = '' 23 machine.start() 24 machine.wait_for_x() 25 26 # confirm proper startup 27 machine.wait_for_unit("yabar.service", "bob") 28 machine.sleep(10) 29 machine.wait_for_unit("yabar.service", "bob") 30 31 machine.screenshot("top_bar") 32 ''; 33})