anchor.diff:            # find the srun job from above in the database
             control.succeed("sleep 5")
             control.succeed("sacct | grep hostname")
  +
  +  with subtest("run_PMIx_mpitest"):
  +      submit.succeed("srun -N 3 --mpi=pmix mpitest | grep size=3")
     '';
   })
  
positive.code: import ./make-test-python.nix ({ lib, ... }:
  let
      mungekey = "mungeverryweakkeybuteasytointegratoinatest";
  
      slurmconfig = {
        controlMachine = "control";
        nodeName = [ "node[1-3] CPUs=1 State=UNKNOWN" ];
        partitionName = [ "debug Nodes=node[1-3] Default=YES MaxTime=INFINITE State=UP" ];
        extraConfig = ''
          AccountingStorageHost=dbd
          AccountingStorageType=accounting_storage/slurmdbd
        '';
      };
  in {
    name = "slurm";
  
  
negative.code:     computeNode =
        { ...}:
        {
          imports = [ slurmconfig ];
          # TODO slurmd port and slurmctld port should be configurations and
          # automatically allowed by the  firewall.
          services.slurm = {
            client.enable = true;
          };
        };
      in {
  
      control =
        { ...}:
        {
          imports = [ slurmconfig ];
          services.slurm = {
            server.enable = true;
          };
        };
  
      submit =
        { ...}:
        {
          imports = [ slurmconfig ];
          services.slurm = {
            enableStools = true;
          };
        };
  
      dbd =
        { pkgs, ... } :
        {
          networking.firewall.enable = false;
          systemd.tmpfiles.rules = [
            "f /etc/munge/munge.key 0400 munge munge - mungeverryweakkeybuteasytointegratoinatest"
          ];
          services.slurm.dbdserver = {
            enable = true;
            storagePass = "password123";
  