colmena/integration-tests/exec/default.nix
Zhaofeng Li 8b87f0de02 integration-tests: Start migration to modular test framework
Still need to migrate most logic in tools.nix to modules.
2022-12-01 01:57:56 -07:00

19 lines
453 B
Nix

{ pkgs ? import ../nixpkgs.nix }:
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
'';
};
}