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 {};
|
2022-12-01 09:57:56 +01:00
|
|
|
in tools.runTest {
|
2021-11-22 10:52:35 +01:00
|
|
|
name = "colmena-exec";
|
|
|
|
|
2022-12-01 09:57:56 +01:00
|
|
|
colmena.test = {
|
|
|
|
bundle = ./.;
|
2021-11-22 10:52:35 +01:00
|
|
|
|
2022-12-01 09:57:56 +01:00
|
|
|
testScript = ''
|
|
|
|
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
|
|
|
|
2022-12-01 09:57:56 +01:00
|
|
|
assert "output from alpha" in logs
|
|
|
|
assert "output from beta" in logs
|
|
|
|
assert "output from gamma" in logs
|
|
|
|
'';
|
|
|
|
};
|
2021-11-22 10:52:35 +01:00
|
|
|
}
|