25 lines
533 B
Nix
25 lines
533 B
Nix
{ pkgs, testService, processManagers, profiles, nix-processmgmt }:
|
|
|
|
testService {
|
|
name = "fcron";
|
|
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;
|
|
}
|