2021-12-08 08:13:31 +01:00
|
|
|
{ pkgs ? import ../nixpkgs.nix }:
|
|
|
|
|
2021-11-22 10:52:35 +01:00
|
|
|
let
|
2021-12-08 08:13:31 +01:00
|
|
|
tools = pkgs.callPackage ../tools.nix {};
|
2021-11-22 10:52:35 +01:00
|
|
|
in tools.makeTest {
|
|
|
|
name = "colmena-exec";
|
|
|
|
|
|
|
|
bundle = ./.;
|
|
|
|
|
|
|
|
testScript = ''
|
2021-12-04 10:03:26 +01:00
|
|
|
logs = deployer.succeed("cd /tmp/bundle && ${tools.colmenaExec} exec --on @target -- echo output from '$(hostname)' 2>&1")
|
2021-11-22 10:52:35 +01:00
|
|
|
|
|
|
|
assert "output from alpha" in logs
|
|
|
|
assert "output from beta" in logs
|
|
|
|
assert "output from gamma" in logs
|
|
|
|
'';
|
|
|
|
}
|