nix-processmgmt-services/tests/fcron/default.nix

24 lines
515 B
Nix

{ pkgs, testService, processManagers, profiles, nix-processmgmt }:
testService {
exprFile = ./processes.nix;
extraParams = {
inherit nix-processmgmt;
};
tests = {instanceName, instance, ...}:
''
machine.succeed("sleep 70")
''
+
(if instanceName == "fcron" then ''
machine.succeed("grep 'hello' /tmp/hello")
''
else if instanceName == "fcron-secondary" then ''
machine.succeed("grep 'bye' /tmp/bye")
''
else "");
inherit processManagers profiles;
}