at master 813 B view raw
1import ../make-test-python.nix { 2 name = "lorri"; 3 4 nodes.machine = 5 { pkgs, ... }: 6 { 7 imports = [ ../../modules/profiles/minimal.nix ]; 8 environment.systemPackages = [ pkgs.lorri ]; 9 }; 10 11 testScript = '' 12 # Copy files over 13 machine.succeed( 14 "cp '${./fake-shell.nix}' shell.nix" 15 ) 16 machine.succeed( 17 "cp '${./builder.sh}' builder.sh" 18 ) 19 20 # Start the daemon and wait until it is ready 21 machine.execute("lorri daemon > lorri.stdout 2> lorri.stderr &") 22 machine.wait_until_succeeds("grep --fixed-strings 'ready' lorri.stderr") 23 24 # Ping the daemon 25 machine.succeed("lorri internal ping --shell-file shell.nix") 26 27 # Wait for the daemon to finish the build 28 machine.wait_until_succeeds("grep --fixed-strings 'Completed' lorri.stderr") 29 ''; 30}