Skip to content

Commit

Permalink
define test run systemd service units
Browse files Browse the repository at this point in the history
  • Loading branch information
cherusk committed Nov 28, 2023
1 parent 060fcef commit cc38484
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions testing/infra/machines/nix/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,28 @@
};
};

systemd.services.test-client = {
enable = true;
wantedBy = [ ];
after = [ ];
description = "Start test-client";
serviceConfig = {
Type = "exec";
ExecStart = "source /opt/sink_ip; iperf3 -P 5 -t 36000 -c $SINK_IP;";
};
};

systemd.services.test-server = {
enable = true;
wantedBy = [ ];
after = [ ];
description = "Start test-server";
serviceConfig = {
Type = "exec";
ExecStart = "iperf3 -s;";
};
};

environment.systemPackages = with pkgs; [
python3
bashInteractive_5
Expand Down

0 comments on commit cc38484

Please sign in to comment.