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 b7ae997
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 /home/godon_robot/sink_ip; /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 b7ae997

Please sign in to comment.