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 6ada757 commit e6f67b9
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions testing/infra/machines/nix/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,29 @@
};
};

systemd.services.test-client = {
enable = true;
wantedBy = [ ];
after = [ ];
description = "Start test-client";
serviceConfig = {
Type = "exec";
EnvironmentFile = "/home/test/sink_ip";
ExecStart = "/run/current-system/sw/bin/iperf3 -P 5 -t 36000 -c $SINK_IP";
};
};

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

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

0 comments on commit e6f67b9

Please sign in to comment.