colmena/integration-tests/exec/default.nix

20 lines
429 B
Nix
Raw Normal View History

2023-01-28 07:44:41 +01:00
{ pkgs }:
2021-11-22 10:52:35 +01:00
let
tools = pkgs.callPackage ../tools.nix {};
in tools.runTest {
2021-11-22 10:52:35 +01:00
name = "colmena-exec";
colmena.test = {
bundle = ./.;
2021-11-22 10:52:35 +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
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
}