···
import ./make-test.nix ({ pkgs, ... }:
let mungekey = "mungeverryweakkeybuteasytointegratoinatest";
controlMachine = "control";
···
# TODO slrumd port and slurmctld port should be configurations and
# automatically allowed by the firewall.
networking.firewall.enable = false;
-
services.slurm = slurmconfig;
···
# Set up authentification across the cluster
-
foreach my $node (($control,$node1,$node2,$node3))
$node->waitForUnit("default.target");
···
subtest "can_start_slurmd", sub {
-
foreach my $node (($control,$node1,$node2,$node3))
$node->succeed("systemctl restart slurmd.service");
$node->waitForUnit("slurmd");
···
subtest "run_distributed_command", sub {
# Run `hostname` on 3 nodes of the partition (so on all the 3 nodes).
# The output must contain the 3 different names
-
$control->succeed("srun -N 3 hostname | sort | uniq | wc -l | xargs test 3 -eq");
···
import ./make-test.nix ({ pkgs, ... }:
let mungekey = "mungeverryweakkeybuteasytointegratoinatest";
controlMachine = "control";
···
# TODO slrumd port and slurmctld port should be configurations and
# automatically allowed by the firewall.
networking.firewall.enable = false;
···
+
networking.firewall.enable = false;
# Set up authentification across the cluster
+
foreach my $node (($submit,$control,$node1,$node2,$node3))
$node->waitForUnit("default.target");
···
subtest "can_start_slurmd", sub {
+
foreach my $node (($node1,$node2,$node3))
$node->succeed("systemctl restart slurmd.service");
$node->waitForUnit("slurmd");
···
subtest "run_distributed_command", sub {
# Run `hostname` on 3 nodes of the partition (so on all the 3 nodes).
# The output must contain the 3 different names
+
$submit->succeed("srun -N 3 hostname | sort | uniq | wc -l | xargs test 3 -eq");