colmena/integration-tests/exec/default.nix
2023-01-27 23:44:41 -07:00

19 lines
429 B
Nix

{ pkgs }:
let
tools = pkgs.callPackage ../tools.nix {};
in tools.runTest {
name = "colmena-exec";
colmena.test = {
bundle = ./.;
testScript = ''
logs = deployer.succeed("cd /tmp/bundle && ${tools.colmenaExec} exec --on @target -- echo output from '$(hostname)' 2>&1")
assert "output from alpha" in logs
assert "output from beta" in logs
assert "output from gamma" in logs
'';
};
}